aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHendrik Tews2021-01-25 08:17:10 +0100
committerhendriktews2021-01-31 21:42:52 +0100
commit0440589e579fba52c0248477cde08b93f9e4cb76 (patch)
tree488dd79a9c20284930e52c886f8a451c293746ba /lib
parent5c82792a079e3a05202486e37834689a67a71b4e (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.
Diffstat (limited to 'lib')
-rw-r--r--lib/texi-docstring-magic.el4
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)