]> git.eshelyaron.com Git - emacs.git/commit
Remove obsolete server buffers on MOTD in erc-track
authorF. Jason Park <jp@neverwas.me>
Wed, 4 Jan 2023 07:10:53 +0000 (23:10 -0800)
committerF. Jason Park <jp@neverwas.me>
Tue, 10 Jan 2023 14:34:01 +0000 (06:34 -0800)
commitfda1ad4a9ec030d013fc16c92d8494bc755b3763
tree9e6daeef1f2ecc1f4c4e1b0128142147d9d1910d
parentbb98666d03f2898f52f8b03f6056f8f8c9368131
Remove obsolete server buffers on MOTD in erc-track

* lisp/erc/erc-networks.el
(erc-networks--copy-server-buffer-functions): New internal hook
through which modules can perform housekeeping when server buffers
belonging to the same network context are merged.
(erc-networks--copy-over-server-buffer-contents): Run new internal
hook `erc-networks--copy-server-buffer-functions'.
* lisp/erc/erc-track.el (erc-track-enable, erc-track-disable): Manage
membership in `erc-networks--copy-server-buffer-functions' hook.
(erc-track--replace-killed-buffer): New function to replace server
buffer being killed in `erc-modified-channels-alist'.
* test/lisp/erc/erc-scenarios-base-association.el
(erc-scenarios-networks-merge-server-track): New test.
* test/lisp/erc/resources/networks/merge-server/track.eld: New test
data.  (Bug#60560.)
lisp/erc/erc-networks.el
lisp/erc/erc-track.el
test/lisp/erc/erc-scenarios-base-association.el
test/lisp/erc/resources/networks/merge-server/track.eld [new file with mode: 0644]