]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't describe lexbound uncompiled function as 'closures'
authorMattias Engdegård <mattiase@acm.org>
Mon, 21 Aug 2023 14:58:24 +0000 (16:58 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 21 Aug 2023 15:05:53 +0000 (17:05 +0200)
* lisp/help-fns.el (help-fns-function-description-header):
Describe lexbound uncompiled functions as functions.
Whether they technically close over any lexical variables isn't of
interest here.

lisp/help-fns.el

index 99c464f8b2690bc91ac86183ecc38c4b73ee2bea..22cfbbc39cdfca61ffdb04d7024ea80796d8bf55 100644 (file)
@@ -1084,10 +1084,8 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
                  (concat beg "byte-compiled Lisp function"))
                  ((module-function-p def)
                   (concat beg "module function"))
-                ((eq (car-safe def) 'lambda)
+                ((memq (car-safe def) '(lambda closure))
                  (concat beg "Lisp function"))
-                ((eq (car-safe def) 'closure)
-                 (concat beg "Lisp closure"))
                 ((keymapp def)
                  (let ((is-full nil)
                        (elts (cdr-safe def)))