From: Mattias EngdegÄrd Date: Mon, 21 Aug 2023 14:58:24 +0000 (+0200) Subject: Don't describe lexbound uncompiled function as 'closures' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f4fe820707074f27ecb3f595966c0f9b9b8a034b;p=emacs.git Don't describe lexbound uncompiled function as 'closures' * 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. --- diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 99c464f8b26..22cfbbc39cd 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -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)))