]> git.eshelyaron.com Git - emacs.git/commitdiff
Closures are always non-nil
authorMattias Engdegård <mattiase@acm.org>
Thu, 15 Dec 2022 10:22:06 +0000 (11:22 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 16 Dec 2022 16:18:44 +0000 (17:18 +0100)
* lisp/emacs-lisp/byte-opt.el (byte-compile-trueconstp):
Treat closures as true in boolean context.

lisp/emacs-lisp/byte-opt.el

index a7e1df3622d0bf824d0c851f18f7b01dfea5407b..55b68c58438518b60191e6587bc3f43cd562d477 100644 (file)
@@ -755,7 +755,8 @@ for speeding up processing.")
                  ((eq head 'list) (cdr form))
                  ((memq head
                         ;; FIXME: Replace this list with a function property?
-                        '( length safe-length cons lambda
+                        '( lambda internal-make-closure
+                           length safe-length cons
                            string unibyte-string make-string concat
                            format format-message
                            substring substring-no-properties string-replace