[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlight current argument in Eldoc for Elisp

From: Tom Tromey
Subject: Re: highlight current argument in Eldoc for Elisp
Date: Sun, 01 Jul 2007 14:54:01 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

>>>>> "rms" == Richard Stallman <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]