[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ability to disable alternating face in erc-nicks
From: |
J.P. |
Subject: |
Re: Ability to disable alternating face in erc-nicks |
Date: |
Fri, 04 Oct 2024 01:34:57 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Trevor Arjeski <tmarjeski@gmail.com> writes:
> Trevor Arjeski <tmarjeski@gmail.com> writes:
>
> Well, per usual, to make myself look like a complete fool, I immediately
> found a hackfix after sending my last email.
>
> modified erc-track.el
> @@ -944,7 +944,7 @@ NEW-FACES has a cdr."
> (or (and erc-track--alt-normals-function
> (funcall erc-track--alt-normals-function
> cur-face choice new-faces normals))
> - (and (equal choice cur-face)
> + (and (not (equal choice cur-face))
> (gethash choice normals)
> (catch 'face
> (progn
>
> Simply adding that 'not' and setting `erc-nicks-track-faces t' (to not
> override `erc-track--alt-normals-function' but still use nick colors)
> seems to sort of do what I want.
>
> Would still be nice to have an actual config to toggle this though!
One possible implementation:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67767#29
Alternative approaches welcome (though please reply to that bug thread
if discussing code in depth). Thanks.