]> git.eshelyaron.com Git - emacs.git/commit
Warn about :reverse-video in defface
authorMattias EngdegÄrd <mattiase@acm.org>
Sat, 28 Sep 2024 20:04:19 +0000 (22:04 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 19:41:23 +0000 (21:41 +0200)
commitfd43fb5a258ea487032edcf5d3faae67477bb21a
tree4bab55e4be6e5c9e3d5ebe15de421415b0cc2bdf
parent2737b904b3043e0a702fd1498662c4e86c99a2b1
Warn about :reverse-video in defface

This attribute keyword has been non-working in defface for 14 years,
thus warning about it is both safe and decent.

* lisp/emacs-lisp/bytecomp.el (bytecomp--check-cus-face-spec):
Warn and suggest :inverse-video to be used instead.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
Add a test case.
* etc/NEWS: Notify the user.

(cherry picked from commit 8d0c8076c3f2c27bd8ff0dbc72d046c64e1dde44)
etc/NEWS
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el