From 0440589e579fba52c0248477cde08b93f9e4cb76 Mon Sep 17 00:00:00 2001 From: Hendrik Tews Date: Mon, 25 Jan 2021 08:17:10 +0100 Subject: report arguments for closures with make magic Switching to lexical scope and emacs using closure (instead of lambda) broke argument printing with make magic. --- lib/texi-docstring-magic.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3