summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/check-declare.el
diff options
context:
space:
mode:
authorF. Jason Park <jp@neverwas.me>2024-03-07 21:53:11 -0800
committerF. Jason Park <jp@neverwas.me>2024-03-10 06:11:22 -0700
commit7b4ca9e609e2eadc824313053e70d7272d360b9d (patch)
treec3f702b240388a147c9faaf659e05f0f705c0f10 /lisp/emacs-lisp/check-declare.el
parent18b6289adfd15029fbaf4a259c44f8df10b9d702 (diff)
downloademacs-7b4ca9e609e2eadc824313053e70d7272d360b9d.tar.gz
emacs-7b4ca9e609e2eadc824313053e70d7272d360b9d.tar.bz2
emacs-7b4ca9e609e2eadc824313053e70d7272d360b9d.zip
Leverage inverse-video for erc-inverse-face
* lisp/erc/erc-goodies.el (erc-inverse-face): Specify face attribute `:inverse-video' (née :reverse-video) to swap foreground and background colors over affected intervals, as per https://modern.ircdocs.horse/formatting#reverse-color. (erc-control-default-fg erc-control-default-bg): New faces for IRC color-code number 99. Ignore the ERC convention of prefixing control-code-derived faces with "fg:" and "bg:" because it doesn't comport with modern sensibilities, which demand identifiers normally be namespaced. (erc-get-bg-color-face, erc-get-fg-color-face): Return new, dedicated faces instead of `default', and don't nest them in a list. * test/lisp/erc/erc-goodies-tests.el (erc-controls-highlight--inverse): Redo completely, asserting behavior described in the spec linked to above. (erc-controls-highlight--spoilers): New test based on the body of the old `erc-controls-highlight--inverse', except without shadowing `erc-insert-modify-hook' with an unrealistic, idealized value. Adjust expected buffer state to reflect the new role of `erc-spoiler-face'. (Bug#69597)
Diffstat (limited to 'lisp/emacs-lisp/check-declare.el')
0 files changed, 0 insertions, 0 deletions