]> git.eshelyaron.com Git - emacs.git/commit
Warn about bad face specs in `defface` at compile time
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 27 Sep 2024 09:48:14 +0000 (11:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 28 Sep 2024 10:40:28 +0000 (12:40 +0200)
commit81e51c2ad9d563e3ab22a35e11b909d9a581663c
treed458ab3e238d386cafc517601370b705cf67776e
parent7fe291feca67b5ba8f107894e44e60de947197e7
Warn about bad face specs in `defface` at compile time

* lisp/emacs-lisp/bytecomp.el (byte-compile--custom-declare-face):
Byte-compile `defface` forms, or the byte-compile handler won't
be called.
(bytecomp--check-cus-face-spec): New.
(bytecomp--custom-declare): Call it.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
New tests.

(cherry picked from commit bba14a27678317eee68e87a343e7314b3949f6c7)
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el