]> git.eshelyaron.com Git - emacs.git/commit
Forgo excess nick buttonizing on JOINs and QUITs
authorF. Jason Park <jp@neverwas.me>
Wed, 13 Dec 2023 03:06:52 +0000 (19:06 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:53:55 +0000 (21:53 +0100)
commit423353febf02788a9a1bbeadb3ab55fbd7f987ac
treebfd7eaa5c9e67b320b62895ff1498dc56e094e1f
parent92dac7c52a448ae7b8c44ff6e7b3a576daff15a1
Forgo excess nick buttonizing on JOINs and QUITs

* etc/ERC-NEWS: Mention nick-button deduping.
* lisp/erc/erc-button.el (erc-button-highlight-nick-once): New
variable to specify commands and numerics for messages that ERC should
forgo redundant buttonizing atop, assuming the presence of a
"userhost".
(erc-button--fallback-cmem-function): Change default value to
`erc-button--get-user-from-spkr-prop'.
(erc-button--get-user-from-spkr-prop): New function to derive user
object from `erc--spkr' "msg prop".  The point is to allow
`erc-speaker-from-channel-member-function' to return a display name
that differs from the speaker's actual nick as recorded by its
`erc-server-user' object.
(erc-button--get-phantom-cmem): Add `count' parameter.
(erc-button-add-nickname-buttons): Stop after first turn if the
current command appears in `erc-button-highlight-nick-once'.  Pass
iteration count to `erc-button--fallback-cmem-function'.  (Bug#67677)

(cherry picked from commit 741bce84890013e0452a4d8d70579ec731ba1cb5)
etc/ERC-NEWS
lisp/erc/erc-button.el