]> git.eshelyaron.com Git - emacs.git/commit
Fix regression in erc-button-add-button
authorF. Jason Park <jp@neverwas.me>
Fri, 29 Dec 2023 04:21:13 +0000 (20:21 -0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:58:13 +0000 (08:58 +0100)
commit988ce027e0cd1e36a6ba6d8e1816fa279e503ea5
tree2867fdb7f5710dac68e52ea658a79f1a4edc2e84
parentb10de5f186882e640a0ae2874b1fe6a6bcf1df5b
Fix regression in erc-button-add-button

* lisp/erc/erc-button.el (erc-button--nick): Abide by recommended
internal naming convention and use "cusr" instead of "cuser" for
referring to an `erc-channel-user' object.
(erc-button--fallback-cmem-function,
erc-button--get-user-from-spkr-prop): Use new, preferred name
`erc-channel-members' for `erc-channel-users' table.
(erc-button-add-nickname-buttons): Use "cmem" instead of "cuser" to
refer to values of the `erc-channel-members' table, which are cons
cells, not `erc-channel-user' objects.  Use updated slot name `cusr'
when initializing `erc-button--nick' object.
(erc-button-add-button): Honor wishes of
`erc-button--modify-nick-function' advice members when they set the
`nickname-face' slot of the passed-around `erc-button--nick' object to
nil to indicate a desire to forgo adding a face while still
buttonizing the inserted nick with `erc-data', etc.  (Bug#67767)

(cherry picked from commit 2534a4737f711e12318fdc50af8d608a81414ebf)
lisp/erc/erc-button.el