Fix regression in erc-button-add-button
authorF. Jason Park <jp@neverwas.me>
Fri, 29 Dec 2023 04:21:13 +0000 (20:21 -0800)
committerF. Jason Park <jp@neverwas.me>
Sun, 31 Dec 2023 14:56:32 +0000 (06:56 -0800)
commit2534a4737f711e12318fdc50af8d608a81414ebf
tree78d759dbd4d3803ec618cd1dc579750fddd193a2
parent6c899525571749c29ec3e2826c4cc70b85b17db1
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)
lisp/erc/erc-button.el