1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/erc
F. Jason Park 1767b0bd7e 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.
2022-06-30 15:16:46 -07:00
..
ChangeLog.1
ChangeLog.2
erc-autoaway.el
erc-backend.el Don't call erc-auto-query twice on PRIVMSG 2022-06-30 15:16:46 -07:00
erc-button.el Make recent nicknames erc change more backwards-compatible 2022-05-11 15:02:08 +02:00
erc-capab.el Update ISUPPORT handling in ERC 2022-06-30 15:03:26 -07:00
erc-compat.el
erc-dcc.el Recognize DCC SSEND when receiving files in erc-dcc 2022-05-22 18:04:52 -07:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el
erc-goodies.el
erc-ibuffer.el
erc-identd.el
erc-imenu.el
erc-join.el Discourage ill-defined use of buffer targets in ERC 2022-06-30 15:03:26 -07:00
erc-lang.el Rename Oriya to Odia, and more 2022-05-19 15:23:46 +03:00
erc-list.el
erc-log.el
erc-match.el
erc-menu.el
erc-netsplit.el
erc-networks.el Address long-standing ERC buffer-naming issues 2022-06-30 15:03:26 -07:00
erc-notify.el
erc-page.el
erc-pcomplete.el
erc-replace.el
erc-ring.el
erc-services.el
erc-sound.el
erc-speedbar.el
erc-spelling.el
erc-stamp.el
erc-status-sidebar.el
erc-track.el Discourage ill-defined use of buffer targets in ERC 2022-06-30 15:03:26 -07:00
erc-truncate.el
erc-xdcc.el
erc.el Don't call erc-auto-query twice on PRIVMSG 2022-06-30 15:16:46 -07:00