Mercurial > emacs
changeset 20243:7658be8b972d
(describe-function): Handle the arglist of a macro.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 11 Nov 1997 02:52:50 +0000 |
parents | 5458685d9a67 |
children | 6fbf1436a7f4 |
files | lisp/help.el |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/help.el Tue Nov 11 02:51:06 1997 +0000 +++ b/lisp/help.el Tue Nov 11 02:52:50 1997 +0000 @@ -565,10 +565,13 @@ (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