]> git.eshelyaron.com Git - emacs.git/commit
Fix condition-case empty success handler misinterpretation
authorMattias Engdegård <mattiase@acm.org>
Sat, 24 Dec 2022 09:39:57 +0000 (10:39 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 24 Dec 2022 10:55:40 +0000 (11:55 +0100)
commit1748361c68aeb3e18e6007369f153657227e6059
tree1ebf9ce1d1f4936548f0cf577abf99194dd6a564
parent8bb8cc5b49a0cb681327ce9abe38266d5e26d19c
Fix condition-case empty success handler misinterpretation

(condition-case X E (:success)) should return nil; the compiler
behaves correctly in this case.

* src/eval.c (internal_lisp_condition_case):
Evaluate an empty :success handler as nil instead of pretending it
isn't there.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.
src/eval.c
test/lisp/emacs-lisp/bytecomp-tests.el