diff options
author | F. Jason Park <jp@neverwas.me> | 2021-05-07 01:52:41 -0700 |
---|---|---|
committer | F. Jason Park <jp@neverwas.me> | 2022-06-30 15:16:46 -0700 |
commit | 1767b0bd7e2883c9467ebf0e0aedee1fd90bcf92 (patch) | |
tree | 3fd6f705293e8b1d5113348131cbd4d1a66a75f2 /test/lisp/erc/resources/erc-scenarios-common.el | |
parent | 7c47d6c52d70225334444947824b40ad9f593c31 (diff) | |
download | emacs-1767b0bd7e2883c9467ebf0e0aedee1fd90bcf92.tar.gz |
Don't call erc-auto-query twice on PRIVMSG
* lisp/erc/erc-backend.el (erc-server-JOIN): Use `erc--open-target'
instead of `erc-join'.
(erc-server-PRIVMSG): Don't call `erc-auto-query' at all, and instead
borrow the portion of its logic that detects when a query buffer
should be created instead of a channel buffer.
* lisp/erc/erc.el (erc-cmd-QUERY): Update the mode line explicitly
after calling `erc-query' in case it's needed after `erc-setup-buffer'
runs. Simplify.
(erc-query, erc--open-target): Replace uses of `erc-query'
with `erc--open-target' and make the former obsolete. Don't call
`erc-update-mode-line' because `erc-open' already does that.
(erc-auto-query): Make this function obsolete. It was previously only
used in erc-backend.el and only sewed confusion.
(erc-query-on-unjoined-chan-privmsg): Add note questioning its role.
It was previously only used by the now deprecated `erc-auto-query'.
* test/lisp/erc/erc-scenarios-misc.el
(erc-scenarios-base-mask-target-routing): Add test for server masks.
* test/lisp/erc/resources/base/mask-target-routing/foonet.eld: New file.
Diffstat (limited to 'test/lisp/erc/resources/erc-scenarios-common.el')
0 files changed, 0 insertions, 0 deletions