]> git.eshelyaron.com Git - emacs.git/commit
Fix some naming issues involving query buffers in ERC
authorF. Jason Park <jp@neverwas.me>
Mon, 12 Dec 2022 15:38:44 +0000 (07:38 -0800)
committerF. Jason Park <jp@neverwas.me>
Fri, 16 Dec 2022 14:36:24 +0000 (06:36 -0800)
commitf04680e067b04ccc9c37e709172c42bf34977ec8
tree677d6c76514b5a040cf71b18dbb16ae5b20103c3
parent173e02f4eb41853a60d4532d76c3c67324da05a8
Fix some naming issues involving query buffers in ERC

* lisp/erc/erc-networks.el
(erc-networks-rename-surviving-target-buffer): Don't kill a surviving
target buffer when another, non-target buffer, possibly not even
belonging to ERC, already exists and sports the target's name.
(erc-networks--reconcile-buffer-names): Always append a network-ID
suffix to a target buffer's name if another buffer of that name
already exists.  (Bug#59976.)
* lisp/erc/erc.el (erc, erc-tls): Revise `:id' portion of doc strings.
Thanks to Mike Kazantsev for the suggestion and for filing this bug
and helping solve it.
* test/lisp/erc/erc-networks-tests.el:
(erc-networks-rename-surviving-target-buffer--query-non-target): Add
new test.
* test/lisp/erc/erc-scenarios-base-association-query.el: New file.
* test/lisp/erc/resources/base/assoc/queries/netnick.eld: New file.
* test/lisp/erc/resources/base/assoc/queries/non-erc.eld: New file.
lisp/erc/erc-networks.el
lisp/erc/erc.el
test/lisp/erc/erc-networks-tests.el
test/lisp/erc/erc-scenarios-base-association-query.el [new file with mode: 0644]
test/lisp/erc/resources/base/assoc/queries/netnick.eld [new file with mode: 0644]
test/lisp/erc/resources/base/assoc/queries/non-erc.eld [new file with mode: 0644]