From unknown Tue Jun 17 01:47:39 2025 X-Loop: don@donarmstrong.com Subject: bug#563: `find-func.el': interactive-form of `find-library' fails Reply-To: "Richard Copley" , 563@debbugs.gnu.org Resent-From: "Richard Copley" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 15 Jul 2008 14:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 563 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121613322431133 (code B ref -1); Tue, 15 Jul 2008 14:55:04 +0000 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" 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 From unknown Tue Jun 17 01:47:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Richard Copley" Subject: bug#563 closed by Glenn Morris (Re: bug#563: `find-func.el': interactive-form of `find-library' fails) Message-ID: References: <5d4p5pipca.fsf@fencepost.gnu.org> X-Emacs-PR-Message: they-closed 563 X-Emacs-PR-Package: emacs Reply-To: 563@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1218597305-14556-1" This is a multi-part message in MIME format... ------------=_1218597305-14556-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #563: `find-func.el': interactive-form of `find-library' fails It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 563: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D563 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1218597305-14556-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rgm@gnu.org Tue Aug 12 20:09:51 2008 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@debbugs.gnu.org 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-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rcopley@gmail.com Tue Jul 15 07:47:04 2008 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-1--