* help-fns.el (help-function-arglist): Don't check advertised-signature-table.
(describe-function-1): Do it here instead so it also applies to subrs. * emacs-lisp/eldoc.el (eldoc-get-fnsym-args-string): Obey advertised-signature-table.
This commit is contained in:
parent
c4861de07b
commit
8d6c1239cb
3 changed files with 27 additions and 14 deletions
|
@ -290,11 +290,14 @@ or elsewhere, return a 1-line docstring. Calls the functions
|
|||
former calls `eldoc-argument-case'; the latter gives the
|
||||
function name `font-lock-function-name-face', and optionally
|
||||
highlights argument number INDEX."
|
||||
(let (args doc)
|
||||
(let (args doc advertised)
|
||||
(cond ((not (and sym (symbolp sym) (fboundp sym))))
|
||||
((and (eq sym (aref eldoc-last-data 0))
|
||||
(eq 'function (aref eldoc-last-data 2)))
|
||||
(setq doc (aref eldoc-last-data 1)))
|
||||
((listp (setq advertised (gethash (indirect-function sym)
|
||||
advertised-signature-table t)))
|
||||
(setq args advertised))
|
||||
((setq doc (help-split-fundoc (documentation sym t) sym))
|
||||
(setq args (car doc))
|
||||
;; Remove any enclosing (), since e-function-argstring adds them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue