]> 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 14:48:51 +0000 (07:48 -0700)
commit9af399fd803ac1ca79f319945b9745b5b96122e7
tree64d52ed4243fb0622771c2cbcef64c01c5d420d7
parent34e257f83a22093cc8dd7a6cd8a4707123f5af77
Fix byte compilation of (eq foo 'default)

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