From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard Copley" Newsgroups: gmane.emacs.bugs Subject: bug#563: `find-func.el': interactive-form of `find-library' fails Date: Tue, 15 Jul 2008 15:46:55 +0100 Message-ID: Reply-To: Richard Copley , 563@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216178082 26368 80.91.229.12 (16 Jul 2008 03:14:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 03:14:42 +0000 (UTC) To: "bug-gnu-emacs@gnu.org" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 16 05:15:29 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 1KIxUE-0005Za-Ag for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 05:15:26 +0200 Original-Received: from localhost ([127.0.0.1]:52675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIxTL-0007lH-Dy for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 23:14:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIm7d-00013r-Sh for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 11:07:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIm7b-00013f-Fa for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 11:07:20 -0400 Original-Received: from [199.232.76.173] (port=36212 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIm7b-00013c-9W for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 11:07:19 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48388) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIm7a-0000Xh-Mi for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 11:07:19 -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 m6FF7Gqk004136; Tue, 15 Jul 2008 08:07:16 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6FEt4mY032452; Tue, 15 Jul 2008 07:55:04 -0700 X-Loop: don@donarmstrong.com Resent-From: "Richard Copley" Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121613322431133 (code B ref -1); Tue, 15 Jul 2008 14:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jul 2008 14:47:04 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.142.158.3 with SMTP id g3mr4698624wfe.344.1216133215386; Tue, 15 Jul 2008 07:46:55 -0700 (PDT) Original-Received: by 10.142.230.8 with HTTP; Tue, 15 Jul 2008 07:46:55 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 15 Jul 2008 11:07:20 -0400 X-Mailman-Approved-At: Tue, 15 Jul 2008 23:14:25 -0400 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:18736 Archived-At: 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