mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-03 06:00:50 -08:00
(describe-function): Handle the arglist of a macro.
This commit is contained in:
parent
85f75902ca
commit
0e3cb3ebc8
1 changed files with 7 additions and 4 deletions
11
lisp/help.el
11
lisp/help.el
|
|
@ -565,10 +565,13 @@ C-w Display information on absence of warranty for GNU Emacs."
|
|||
(princ "'")))
|
||||
(princ ".")
|
||||
(terpri)
|
||||
(let ((arglist (cond ((byte-code-function-p def)
|
||||
(car (append def nil)))
|
||||
((eq (car-safe def) 'lambda)
|
||||
(nth 1 def))
|
||||
(let* ((inner-function (if (and (listp def) 'macro)
|
||||
(cdr def)
|
||||
def))
|
||||
(arglist (cond ((byte-code-function-p inner-function)
|
||||
(car (append inner-function nil)))
|
||||
((eq (car-safe inner-function) 'lambda)
|
||||
(nth 1 inner-function))
|
||||
(t t))))
|
||||
(if (listp arglist)
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue