]> 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)
committerF. Jason Park <jp@neverwas.me>
Mon, 18 Dec 2023 04:17:55 +0000 (20:17 -0800)
commit741bce84890013e0452a4d8d70579ec731ba1cb5
tree930ae0b4c2f1a5da1a0d01477c9aaeb57c315394
parent08ec3e89793646787698cb5edd1681f498c266cf
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)
etc/ERC-NEWS
lisp/erc/erc-button.el