projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2902fb0
)
Deduplicate non-fixnum numeric constants in byte-compilation
author
Mattias Engdegård
<mattiase@acm.org>
Sun, 22 Dec 2019 11:09:06 +0000
(12:09 +0100)
committer
Mattias Engdegård
<mattiase@acm.org>
Fri, 27 Dec 2019 13:55:22 +0000
(14:55 +0100)
* lisp/emacs-lisp/bytecomp.el (byte-compile-get-constant):
Use eql for looking up constants instead of eq, allowing
for bignum and flonum deduplication (bug#38708).
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 118356ec26a4bc3fcdeeaefd8ba0df73d47cc9ea..60dbae1d4bc50d66b4ac67712dc65f229af39e70 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-3462,7
+3462,7
@@
for symbols generated by the byte compiler itself."
(if (equal-including-properties (car elt) ,const)
(setq result elt)))
result)
- (ass
q ,const byte-compile-constants
))
+ (ass
oc ,const byte-compile-constants #'eql
))
(car (setq byte-compile-constants
(cons (list ,const) byte-compile-constants)))))