]> git.eshelyaron.com Git - emacs.git/commit
Spoof channel users in erc-button--phantom-users-mode
authorF. Jason Park <jp@neverwas.me>
Thu, 7 Sep 2023 02:40:11 +0000 (19:40 -0700)
committerF. Jason Park <jp@neverwas.me>
Sun, 17 Sep 2023 23:17:59 +0000 (16:17 -0700)
commita0ed463babaa6301dfe2fecc27e2a6c92eb0d90c
tree6fbd6a8cd2bb99b40ee7d505c9fb856c9abbd0c2
parent69a154616e11149df80d22a9279818e1d3fda317
Spoof channel users in erc-button--phantom-users-mode

* lisp/erc/erc-backend.el (erc--cmem-from-nick-function): Update
forward declaration.
(erc-server-PRIVMSG): Use new name for `erc--user-from-nick-function',
now `erc--cmem-from-nick-function'.
* lisp/erc/erc-button.el (erc-button--phantom-users,
erc-button--phantom-cmems): Rename former to latter.
(erc-button--fallback-user-function,
erc-button--fallback-cmem-function): Rename former to latter.
(erc--phantom-channel-user, erc--phantom-server-user): New superficial
`cl-struct' definitions "subclassing" `erc-channel-user' and
`erc-server-user'.  Note that these symbols lack an `erc-button'
prefix.
(erc-button--add-phantom-speaker): Look for channel member instead of
server user, creating one if necessary.  Return a made-up
`erc-channel-user' along with a fake `erc-server-user'.
(erc-button--get-phantom-user, erc-button--get-phantom-cmem): Rename
former to latter.
(erc-button--phantom-users-mode, erc-button--phantom-users-enable,
erc-button--phantom-users-disable): Use updated "cmem" names for
function-valued interface variables and their implementing functions.
Remove obsolete comment.
(erc-button-add-nickname-buttons): Attempt to query fallback function
for channel member instead of server user.
* lisp/erc/erc.el (erc--user-from-nick-function,
erc--cmem-from-nick-function): Rename former to latter.
(erc--examine-nick, erc--cmem-get-existing): Rename former to
latter.  (Bug#60933)
lisp/erc/erc-backend.el
lisp/erc/erc-button.el
lisp/erc/erc.el