]> git.eshelyaron.com Git - emacs.git/commit
Fix wrong value of `when` and `unless` with empty body (bug#74215)
authorMattias EngdegÄrd <mattiase@acm.org>
Wed, 6 Nov 2024 12:29:23 +0000 (13:29 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 8 Nov 2024 13:34:01 +0000 (14:34 +0100)
commit0ea4f126ebc6579ac62613cb040107de47eff6d3
treecd9223a2ff90c3143f09431bae420cb12f3b735f
parent4ba47f7830058acf53d4fc900ff0e370171f1412
Fix wrong value of `when` and `unless` with empty body (bug#74215)

Reported by Brennan Vincent.

* lisp/subr.el (when, unless): Return nil when the body is empty.
* test/lisp/subr-tests.el (subr-test-when): Add test cases.

(cherry picked from commit 9ee9154247454c18f9f75d0d32592b817d7e977a)
lisp/subr.el
test/lisp/subr-tests.el