]> git.eshelyaron.com Git - emacs.git/commit
Allow erc-reuse-frames to favor connections
authorF. Jason Park <jp@neverwas.me>
Sat, 21 May 2022 10:04:04 +0000 (03:04 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 8 Apr 2023 21:23:51 +0000 (14:23 -0700)
commit0e4c07dc7448aafd2aa5f6e101d7b7aac23d8a6b
treefd847c1ff8426dbadfe88831c833264c305c9a06
parentc104e90888a03b4879cd91bf5d130288ac880d66
Allow erc-reuse-frames to favor connections

* lisp/erc/erc.el (erc-reuse-frames): Add alternate value to favor
existing frames already displaying buffers from the same connection.
(erc--setup-buffer-first-window, erc--display-buffer-use-some-frame):
Add helpers to support 'display' variant of `erc-resuse-frames'
* test/lisp/erc/erc-tests.el (erc-tests--run-in-term,
erc-tests--servars, erc-reuse-frames, erc-tests--erc-reuse-frames,
erc-tests--erc-reuse-frames--t, erc-resuse-frames--t,
erc-tests--erc-reuse-frames--displayed-single,
erc-reuse-frames--displayed-single, erc-tests--assert-server-split,
erc-tests--erc-reuse-frames--displayed-double,
erc-reuse-frames--displayed-double,
erc-tests--erc-reuse-frames--displayed-full,
erc-reuse-frames--displayed-full): Add test case and supporting
fixtures.  (Bug#55540.)
lisp/erc/erc.el
test/lisp/erc/erc-tests.el