]> git.eshelyaron.com Git - emacs.git/commit
Improve check for misleading 'cl-case' cases (Bug#57915).
authorPhilipp Stephani <phst@google.com>
Mon, 19 Sep 2022 11:34:51 +0000 (13:34 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 19 Sep 2022 11:34:51 +0000 (13:34 +0200)
commita71de4b52d3de14349ded7d88c4cae6e2a9376ae
tree9fa8895e0b37a59a8977112c03fa9ff594ec45c5
parentf735aa0f3954750df799fce3452b56e5bdac2184
Improve check for misleading 'cl-case' cases (Bug#57915).

* lisp/emacs-lisp/cl-macs.el (cl-case): Check that the case is of the
form (quote FOO), not just (quote).
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-case-no-warning): New unit test.
lisp/emacs-lisp/cl-macs.el
test/lisp/emacs-lisp/cl-macs-tests.el