projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9452dc4
)
Closures are always non-nil
author
Mattias Engdegård
<mattiase@acm.org>
Thu, 15 Dec 2022 10:22:06 +0000
(11:22 +0100)
committer
Mattias 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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-opt.el
b/lisp/emacs-lisp/byte-opt.el
index a7e1df3622d0bf824d0c851f18f7b01dfea5407b..55b68c58438518b60191e6587bc3f43cd562d477 100644
(file)
--- a/
lisp/emacs-lisp/byte-opt.el
+++ b/
lisp/emacs-lisp/byte-opt.el
@@
-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