1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-28 07:50:48 -08:00
emacs/test/lisp/erc
F. Jason Park 04477cf97b Tether query rolls to channel membership in ERC
* lisp/erc/erc-backend.el (erc-server-JOIN): Update query membership
via `erc--ensure-query-member' when someone else joins a channel.
(erc-server-NICK): Update query membership via
`erc--ensure-query-member' after someone else changes their nick.
(erc-server-PRIVMSG): After printing a query message from some other
person, remove their nick's data from the query buffer's user table if
they're "untracked," i.e., not a member of a channel.
(erc-server-263, erc-server-263-functions): New function and variable,
a default response handler and hook for "RPL_TRYAGAIN", which servers
send for things like rejecting "WHO" and "WHOX" responses due to rate
limiting.
(erc-server-311): Fix call to `erc-update-user-nick' so the userhost
login component is no longer supplied as the `info' parameter but
rather, correctly, as the `login'.
(erc--extract-352-full-name): Factor out trailing hop-count and GECOS
parsing for use by overriding handlers or those for adjacent numerics.
(erc-server-352): Refactor to handle asterisk as `channel' parameter,
which indicates a nick rather than a channel target.
(erc-server-366): Update membership in all query buffers via
`erc--ensure-query-members' after all names have been received.
(erc-server-401): Forget a known user completely when the server
reports them as nonexistent.
* lisp/erc/erc-common.el (erc--get-server-user): New function, a thin
wrapper around `erc-get-server-user' for cases were inlining would
require declaring symbols not defined in erc-common.
* lisp/erc/erc.el (erc-channel-members): Mention that instances are
used for query-participant tables as well.
(erc--decouple-query-and-channel-membership-p): New variable, a
compatibility flag to access pre-5.6 query bookkeeping behavior.
(erc--ensure-query-member, erc--ensure-query-members): New functions.
(erc-cmd-QUERY): Ensure parties are present in the query buffer's
membership table if they're known to be on the server by simple virtue
of being present in some joined channel.
(erc-message-english-s352-you): New variable.
* test/lisp/erc/erc-scenarios-base-query-participants.el
(erc-scenarios-base-query-participants)
(erc-scenarios-base-query-participants/legacy): Rename former to
latter.  Enable compat flag to activate legacy query behavior in which
channel membership does not impact query membership.
(erc-scenarios-base-query-participants/coupled): New test asserting
new behavior in which channel membership dictates query
membership.  (Bug#70928)
2024-05-27 16:39:18 -07:00
..
resources Reuse old query buffers for reassumed nicks in ERC 2024-05-27 16:39:18 -07:00
erc-button-tests.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-dcc-tests.el
erc-fill-tests.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-goodies-tests.el
erc-join-tests.el
erc-match-tests.el
erc-networks-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-nicks-tests.el
erc-sasl-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-scenarios-auth-source.el
erc-scenarios-base-association-nick.el ; Set explicit hook depth for erc-once-with-server-event 2024-05-02 19:21:48 -07:00
erc-scenarios-base-association-query.el
erc-scenarios-base-association-samenet.el
erc-scenarios-base-association.el
erc-scenarios-base-attach.el
erc-scenarios-base-auto-recon.el
erc-scenarios-base-buffer-display.el
erc-scenarios-base-chan-modes.el
erc-scenarios-base-compat-rename-bouncer.el
erc-scenarios-base-kill-on-part.el Don't kill server buffer with erc-kill-buffer-on-part 2024-05-18 15:48:05 -07:00
erc-scenarios-base-local-module-modes.el
erc-scenarios-base-local-modules.el
erc-scenarios-base-misc-regressions.el
erc-scenarios-base-netid-bouncer-id.el
erc-scenarios-base-netid-bouncer-recon-base.el
erc-scenarios-base-netid-bouncer-recon-both.el
erc-scenarios-base-netid-bouncer-recon-id.el
erc-scenarios-base-netid-bouncer.el
erc-scenarios-base-netid-samenet.el
erc-scenarios-base-query-participants.el Tether query rolls to channel membership in ERC 2024-05-27 16:39:18 -07:00
erc-scenarios-base-reconnect.el
erc-scenarios-base-renick.el Reuse old query buffers for reassumed nicks in ERC 2024-05-27 16:39:18 -07:00
erc-scenarios-base-reuse-buffers.el
erc-scenarios-base-send-message.el
erc-scenarios-base-split-line.el
erc-scenarios-base-statusmsg.el
erc-scenarios-base-unstable.el
erc-scenarios-base-upstream-recon-soju.el
erc-scenarios-base-upstream-recon-znc.el
erc-scenarios-display-message.el
erc-scenarios-ignore.el Add format-catalog entry for unknown chan mode in ERC 2024-05-08 17:11:26 -07:00
erc-scenarios-internal.el
erc-scenarios-join-auth-source.el
erc-scenarios-join-display-context.el
erc-scenarios-join-netid-newcmd-id.el
erc-scenarios-join-netid-newcmd.el
erc-scenarios-join-netid-recon-id.el
erc-scenarios-join-netid-recon.el
erc-scenarios-keep-place-indicator.el
erc-scenarios-log.el
erc-scenarios-match.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-scenarios-misc-commands.el
erc-scenarios-misc.el Add format-catalog entry for unknown chan mode in ERC 2024-05-08 17:11:26 -07:00
erc-scenarios-prompt-format.el
erc-scenarios-sasl.el
erc-scenarios-scrolltobottom-relaxed.el
erc-scenarios-scrolltobottom.el
erc-scenarios-services-misc.el
erc-scenarios-stamp.el Add erc--skip message property 2024-04-19 13:54:52 -07:00
erc-scenarios-status-sidebar.el Delete original speedbar frame in erc-nickbar-mode 2024-05-27 16:39:18 -07:00
erc-services-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-stamp-tests.el Reconcile erc-stamp--date-stamps when merging buffers 2024-05-18 15:48:05 -07:00
erc-tests.el Mention if an ERC module is local in its doc string 2024-05-27 16:39:18 -07:00
erc-track-tests.el