From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: highlight current argument in Eldoc for Elisp Date: Sun, 01 Jul 2007 14:54:01 -0600 Message-ID: References: <200706301813.24815.pogonyshev@gmx.net> Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183324451 12270 80.91.229.12 (1 Jul 2007 21:14:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2007 21:14:11 +0000 (UTC) Cc: emacs-devel@gnu.org, Paul Pogonyshev To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 23:14:10 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I56kD-0007dZ-2T for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 23:14:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I56kC-0006Mo-Ha for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 17:14:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I56k8-0006GG-G5 for emacs-devel@gnu.org; Sun, 01 Jul 2007 17:14:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I56k8-0006FT-27 for emacs-devel@gnu.org; Sun, 01 Jul 2007 17:14:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I56k7-0006FN-RR for emacs-devel@gnu.org; Sun, 01 Jul 2007 17:14:03 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I56k6-0002Z8-Mf; Sun, 01 Jul 2007 17:14:02 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l61LE0J8025855; Sun, 1 Jul 2007 17:14:00 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l61LE0T2030058; Sun, 1 Jul 2007 17:14:00 -0400 Original-Received: from opsy.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l61LDxgX005058; Sun, 1 Jul 2007 17:13:59 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 918573780F6; Sun, 1 Jul 2007 14:54:01 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Richard Stallman's message of "Sat\, 30 Jun 2007 20\:30\:13 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74154 Archived-At: >>>>> "rms" == Richard Stallman writes: rms> Thanks for posting the patch. Would people please try it rms> and report any problems? I get this error occasionally: eldoc error: (wrong-number-of-arguments (lambda (sym argument-index) (let ((args nil) (doc nil)) (cond ((not (and sym (symbolp sym) (fboundp sym)))) ((and (eq sym (aref eldoc-last-data 0)) (eq (quote function) (aref eldoc-last-data 2))) (setq args (aref eldoc-last-data 1))) ((setq doc (help-split-fundoc (documentation sym t) sym)) (setq args (car doc)) (string-match \`[^ )]* ? args) (setq args (concat ( (substring args (match-end 0)))) (eldoc-last-data-store sym args (quote function))) (t (setq args (eldoc-function-argstring sym)))) (when args (setq doc (eldoc-highlight-function-argument sym args argument-index))) doc)) 0) To see this, open gnus/mm-view.el and search for "defcustom". Put point in the docstring and wait. This reliably shows the error for me. Tom