]> git.eshelyaron.com Git - emacs.git/commit
Remove mishandled erc-control-default-{fg,bg} faces
authorF. Moukayed <smfadi+emacs@gmail.com>
Sun, 17 Mar 2024 16:43:36 +0000 (16:43 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:21:55 +0000 (15:21 +0100)
commit24e26b76b408c6286b7bb545ff0bce3cc6c78986
treebaca592d58f5191985774543531db830a99d6de9
parent78bbca3b3ac4aa3ae73dd57754956f8215ebef8c
Remove mishandled erc-control-default-{fg,bg} faces

Partially revert those portions of 7b4ca9e609e "Leverage inverse-video
for erc-inverse-face" that introduced and managed explicit faces for
the "default" 99 color code.

* lisp/erc/erc-goodies.el (erc-control-default-fg)
(erc-control-default-bg): Remove unused faces originally meant to be
new in ERC 5.6.
(erc-get-fg-color-face, erc-get-bg-color-face): Return nil for n=99.
(erc-controls-interpret, erc-controls-highlight): Preserve an
interval's existing background so "if only the foreground color is
set, the background color stays the same," as explained by
https://modern.ircdocs.horse/formatting#color.  (Bug#69860)

Copyright-paperwork-exempt: yes
(cherry picked from commit 525bc083155030b58de08c8716fec9db1496aa9d)
lisp/erc/erc-goodies.el