]> git.eshelyaron.com Git - emacs.git/commit
Improve erc-button--modify-nick-function interface
authorF. Jason Park <jp@neverwas.me>
Sat, 15 Apr 2023 16:52:05 +0000 (09:52 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 6 May 2023 00:18:01 +0000 (17:18 -0700)
commitd141f7149b67daa93ac13420ee5edf4b0cbbf011
treeb55e55e1a522cb3815601247f35ae68f1f7d2b50
parent5adda2f4683fe23efd659fc7418044c8230772c5
Improve erc-button--modify-nick-function interface

* lisp/erc/erc-button.el (erc-button--check-nicknames-entry): Remove
unused let binding.
(erc-button--preserve-bounds): Remove unused function.
(erc-button--nick): New struct type to serve as collection plate for
`erc-button--modify-nick-function' consumers.
(erc-button--modify-nick-function): Reexplain interface, now based on
`erc-button--nick' object.  Change default value to `identity'.
(erc-button--add-phantom-speaker): Redo to expect `erc-button--nick'
object.
(erc-button-add-nickname-buttons): Rework slightly to construct an
`erc-button--nick' object for feeding to
`erc-button--modify-nick-function'.  Only run the latter when an
`erc-server-user' has successfully been found.  (Bug#60933)
lisp/erc/erc-button.el