]> git.eshelyaron.com Git - emacs.git/commit
Warn about `condition-case` without handlers
authorMattias Engdegård <mattiase@acm.org>
Mon, 27 Feb 2023 12:57:48 +0000 (13:57 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 27 Feb 2023 13:34:22 +0000 (14:34 +0100)
commit443c249d85003639512d8d3b6ace184a9ff53bc2
tree073c9bf02bb377f56606cd0352f9d301ccfb1802
parent10d2b76edadb6575545433ea6183c4d8e8588191
Warn about `condition-case` without handlers

Omitting handlers from a `condition-case` form makes it useless
since no errors are caught.

* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): New warning.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--with-suppressed-warnings): Add test case.
* etc/NEWS: Announce.
etc/NEWS
lisp/emacs-lisp/macroexp.el
test/lisp/emacs-lisp/bytecomp-tests.el