diff options
| author | Hendrik Tews | 2021-01-25 08:17:10 +0100 |
|---|---|---|
| committer | hendriktews | 2021-01-31 21:42:52 +0100 |
| commit | 0440589e579fba52c0248477cde08b93f9e4cb76 (patch) | |
| tree | 488dd79a9c20284930e52c886f8a451c293746ba | |
| parent | 5c82792a079e3a05202486e37834689a67a71b4e (diff) | |
report arguments for closures with make magic
Switching to lexical scope and emacs using closure (instead of
lambda) broke argument printing with make magic.
| -rw-r--r-- | lib/texi-docstring-magic.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/texi-docstring-magic.el b/lib/texi-docstring-magic.el index 2f20b078..a028f56f 100644 --- a/lib/texi-docstring-magic.el +++ b/lib/texi-docstring-magic.el @@ -319,7 +319,9 @@ Markup as @code{stuff} or @lisp stuff @end Lisp." (def (symbol-function function)) (macrop (eq 'macro (car-safe def))) (argsyms (cond ((eq (car-safe def) 'lambda) - (nth 1 def)))) + (nth 1 def)) + ((eq (car-safe def) 'closure) + (nth 2 def)))) (args (mapcar 'symbol-name argsyms))) (cond ((commandp function) |
