From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#563: marked as done (`find-func.el': interactive-form of `find-library' fails) Date: Tue, 12 Aug 2008 20:15:05 -0700 Message-ID: References: <5d4p5pipca.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1218597305-14556-0" X-Trace: ger.gmane.org 1218598122 29888 80.91.229.12 (13 Aug 2008 03:28:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 03:28:42 +0000 (UTC) To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 05:29:34 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KT73C-0006z8-CX for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 05:29:30 +0200 Original-Received: from localhost ([127.0.0.1]:43845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT72G-0003xc-3u for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 23:28:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KT72C-0003xU-1A for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:28:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KT72A-0003wx-Lc for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:28:27 -0400 Original-Received: from [199.232.76.173] (port=50633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT72A-0003wu-5U for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:28:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50919) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KT71N-0002bB-14; Tue, 12 Aug 2008 23:27:39 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7D3RPSJ018723; Tue, 12 Aug 2008 20:27:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7D3F5hU014620; Tue, 12 Aug 2008 20:15:05 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 563 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19363 Archived-At: This is a multi-part message in MIME format... ------------=_1218597305-14556-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Tue, 12 Aug 2008 23:08:37 -0400 with message-id <5d4p5pipca.fsf@fencepost.gnu.org> and subject line Re: bug#563: `find-func.el': interactive-form of `find-lib= rary' fails has caused the Emacs bug report #563, regarding `find-func.el': interactive-form of `find-library' fails to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 563: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D563 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1218597305-14556-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jul 2008 14:47:04 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6FEl12d031127 for ; Tue, 15 Jul 2008 07:47:02 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIlnw-0006q1-O5 for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 10:47:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIlnv-0006oA-1g for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 10:47:00 -0400 Received: from [199.232.76.173] (port=47085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIlnu-0006o7-QT for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 10:46:58 -0400 Received: from wf-out-1314.google.com ([209.85.200.171]:22514) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIlnu-0004ez-GH for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 10:46:58 -0400 Received: by wf-out-1314.google.com with SMTP id 28so4647899wfc.24 for ; Tue, 15 Jul 2008 07:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=qRUfTw0Cw54uLI8Llat6+i2B4+tToIKjMWSfq+57hfE=; b=NOBvnfUWLtrk4opTRBpmTnJuUW1D2WJFg0TaofTrpIIGeepMTmwhhoN1ucG2ozTHEC zs5eRoPZk/6PK7qxNwoBqzoFCbubKMvzYbjMYorwu9bsKfcxkEwuJWiwiMkipI7aMKLl LW9JUFxZaVKON1cIrK5nEyUUGrQP8PIMn70dI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=YoF3CSpJukfX7+DiWFzM2MLd8mR+LpL9XkZUEMI3zviYcbxRxbhxnrGU1jsHBFIdXI 0S7rmKyXk81oxp4y4NMN1aqFKx/h4M9ptKalOUdut0zRHdVQag+I+0oYou/PHE5WrrN4 qF77CRqqrVLxrSXp9Csp3vj+ah1pYgzVNBDDY= Received: by 10.142.158.3 with SMTP id g3mr4698624wfe.344.1216133215386; Tue, 15 Jul 2008 07:46:55 -0700 (PDT) Received: by 10.142.230.8 with HTTP; Tue, 15 Jul 2008 07:46:55 -0700 (PDT) Message-ID: Date: Tue, 15 Jul 2008 15:46:55 +0100 From: "Richard Copley" To: "bug-gnu-emacs@gnu.org" Subject: `find-func.el': interactive-form of `find-library' fails MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) To reproduce, Visit a library file containing a `require' form, e.g., "M-x find-library RET yow RET". Search for a `require' form and position point on its the opening left parenthesis. Invoke `find-library' interactively with "M-x find-library RET". Symptom Instead of prompting for a library name, Emacs displays the error message `Scan error: "Unbalanced parentheses", 1222, 1'. Problem The error is in the interactive form of `find-library' in `find-func.el'. If point is over the opening left-paren of the `require' form then `function-called-at-point' returns `require', whereupon `backward-up-list' fails because point is not in a list. Suggestions (for what they're worth :) (a) Handle this special case in the `find-library' interactive form. (b) Modify `function-called-at-point' to do what its docstring says. (c) In the `find-function' interactive form, use `condtition-case' to detect errors in computing the default. In GNU Emacs 22.2.1 (i386-mingw-nt6.0.6001) of 2008-03-26 on RELEASE Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: show-paren-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t ------------=_1218597305-14556-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 563-done) by emacsbugs.donarmstrong.com; 13 Aug 2008 03:09:51 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7D39mUv012910 for <563-done@emacsbugs.donarmstrong.com>; Tue, 12 Aug 2008 20:09:50 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KT6iz-000763-Pj; Tue, 12 Aug 2008 23:08:37 -0400 From: Glenn Morris To: Richard Copley Cc: 563-done@emacsbugs.donarmstrong.com Subject: Re: bug#563: `find-func.el': interactive-form of `find-library' fails References: X-Spook: AGT. AMME Ansar al-Islam chameleon man pre-emptive X-Ran: !6*j6iw{cSdG5!xi,m#2$W@|-k9r6)W)pwP-'O9K|7Jd}o^9oD (Richard Copley's message of "Tue, 15 Jul 2008 15:46:55 +0100") Message-ID: <5d4p5pipca.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Fix sync'd from trunk to 22, bug closed. 2008-08-13 Martin Rudalics * emacs-lisp/find-func.el (find-library): Wrap search for library name in condition-case to avoid reporting a scan-error. (Bug#563) (sync from trunk 2008-01-25) ------------=_1218597305-14556-0--