projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d22a3e5
)
* lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Clarify the test
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 25 Jan 2024 19:24:20 +0000
(14:24 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 25 Jan 2024 19:24:43 +0000
(14:24 -0500)
Use `compiled-function-p`.
lisp/emacs-lisp/cl-generic.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-generic.el
b/lisp/emacs-lisp/cl-generic.el
index 48f5c06e390a583a0a114cd29b1d78e247d0b49c..bdccdcc48ce5a98f7e491d04d04d40711b9b2f6c 100644
(file)
--- a/
lisp/emacs-lisp/cl-generic.el
+++ b/
lisp/emacs-lisp/cl-generic.el
@@
-672,7
+672,7
@@
The set of acceptable TYPEs (also called \"specializers\") is defined
;; compiled. Otherwise the byte-compiler and all the code on
;; which it depends needs to be usable before cl-generic is loaded,
;; which imposes a significant burden on the bootstrap.
- (if (
consp (lambda (x) (+ x 1
)))
+ (if (
not (compiled-function-p (lambda (x) (+ x 1)
)))
(lambda (exp) (eval exp t))
;; But do byte-compile the dispatchers once bootstrap is passed:
;; the performance difference is substantial (like a 5x speedup on