]> git.eshelyaron.com Git - emacs.git/commit
Fix byte compilation of (eq foo 'default)
authorPaul Eggert <eggert@Penguin.CS.UCLA.EDU>
Sat, 16 Jun 2018 14:44:58 +0000 (07:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jun 2018 16:44:05 +0000 (09:44 -0700)
commite1284341fdc9a5d9b25339c3d47b02bc35cd8db4
treef15a3b9382d6cf1c54a61eff801254a0ba3e2b0c
parent4753d79331f747001ebdbbe9c32b33597daab37f
Fix byte compilation of (eq foo 'default)

Backport from master.
Do not use the symbol â€˜default’ as a special marker.
Instead, use a value that cannot appear in the program,
improving on a patch proposed by Robert Cochran (Bug#31718#14).
* lisp/emacs-lisp/bytecomp.el (byte-compile--default-val):
New constant.
(byte-compile-cond-jump-table-info)
(byte-compile-cond-jump-table): Use it instead of 'default.
* test/lisp/emacs-lisp/bytecomp-tests.el:
(byte-opt-testsuite-arith-data): Add a test for the bug.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el