1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00
emacs/test/lisp/erc
F. Jason Park cca7956c82 Favor ISUPPORT params for MODE processing in ERC
* etc/ERC-NEWS: Mention shift toward CHANMODES ISUPPORT parameter for
dictating MODE parsing behavior.
* lisp/erc/erc-backend.el (erc--init-channel-modes, erc--update-modes,
erc-set-modes, erc-update-modes): Forward declarations, the last two
being removals.
(erc-server-MODE, erc-server-221): Use `erc--update-modes' instead of
`erc-update-modes'.
(erc-server-324): Use `erc--init-channel-modes' instead of
`erc-set-modes'.
* lisp/erc/erc-common.el (erc--channel-mode-types): New struct for
stashing processed \"CHANMODES\" data for the current server.
* lisp/erc/erc.el (erc-channel-modes): Fix doc string.
(erc-set-initial-user-mode): Display a local notice when requesting
redundant user MODE operations.
(erc-set-modes, erc-parse-modes, erc-update-modes): Deprecate for
reasons explained in associated ERC-NEWS entry.
(erc--update-membership-prefix): New function, a helper for specifying
arguments to the rather unruly `erc-update-current-channel-member'.
(erc--channel-modes): New variable to record channel-mode state in a
hash table.
(erc--channel-mode-types): New variable and getter to stash
and retrieve server-local instance of the struct of the same name.
(erc--process-channel-modes): New function to parse channel-mode
changes, dispatch handlers for unary modes, and update the local
variables `erc-channel-modes' and `erc--channel-modes'.
(erc--user-modes): New local variable for remembering user modes per
server.  New function of the same name, a "getter" for the variable.
(erc--parse-user-modes): New function to parse user modes only.
(erc--update-user-modes): New function to update and sort
`erc--user-modes'.
(erc--update-channel-modes): New function to replace much of
`erc-update-modes', currently a thin wrapper around
`erc--process-channel-modes' to ensure it updates status prefixes.
(erc--update-modes): New function to call appropriate mode-updating
function for the current buffer.
(erc--init-channel-modes): New function to update channel mode letters
without status prefixes.
(erc--handle-channel-mode): New generic function, a placeholder for an
eventual API to handle specific "unary" mode letters, meaning those
that specify a single parameter for setting or unsetting.
(erc-update-channel-limit): Update doc string and answer question
posed by ancient comment.
(erc-message-english-user-mode-redundant-add,
erc-message-english-user-mode-redundant-drop): New English catalog
messages.
* test/lisp/erc/erc-scenarios-base-chan-modes.el: New file.
* test/lisp/erc/erc-tests.el (erc-parse-modes,
erc--update-channel-modes, erc--update-user-modes, erc--user-modes,
erc--parse-user-modes): New tests.
* test/lisp/erc/resources/base/modes/chan-changed.eld: New test data
file.  (Bug#67220)
2023-11-18 12:34:56 -08:00
..
resources Favor ISUPPORT params for MODE processing in ERC 2023-11-18 12:34:56 -08:00
erc-button-tests.el
erc-dcc-tests.el
erc-fill-tests.el Align date stamps to whole days in ERC 2023-11-04 15:41:55 -07:00
erc-goodies-tests.el
erc-join-tests.el
erc-match-tests.el
erc-networks-tests.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-nicks-tests.el Offer alternate pool-creation strategies in erc-nicks 2023-11-12 20:37:48 -08:00
erc-sasl-tests.el
erc-scenarios-auth-source.el
erc-scenarios-base-association-nick.el
erc-scenarios-base-association-query.el
erc-scenarios-base-association-samenet.el
erc-scenarios-base-association.el ; Attempt to fix race in erc-buffer-display test 2023-11-01 16:14:10 -07:00
erc-scenarios-base-attach.el
erc-scenarios-base-auto-recon.el
erc-scenarios-base-buffer-display.el ; Attempt to fix race in erc-buffer-display test 2023-11-01 16:14:10 -07:00
erc-scenarios-base-chan-modes.el Favor ISUPPORT params for MODE processing in ERC 2023-11-18 12:34:56 -08:00
erc-scenarios-base-compat-rename-bouncer.el
erc-scenarios-base-local-module-modes.el
erc-scenarios-base-local-modules.el
erc-scenarios-base-misc-regressions.el Add test for erc-cmd-SQUERY 2023-11-18 12:34:56 -08:00
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-reconnect.el
erc-scenarios-base-renick.el
erc-scenarios-base-reuse-buffers.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-scenarios-base-send-message.el Revive erc-command-indicator as new module 2023-11-12 20:37:49 -08:00
erc-scenarios-base-split-line.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 Simplify ISUPPORT-derived data wrangling in ERC 2023-11-18 12:34:56 -08: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-log.el
erc-scenarios-match.el
erc-scenarios-misc-commands.el Add test for erc-cmd-SQUERY 2023-11-18 12:34:56 -08:00
erc-scenarios-misc.el
erc-scenarios-sasl.el
erc-scenarios-scrolltobottom-relaxed.el
erc-scenarios-scrolltobottom.el
erc-scenarios-services-misc.el
erc-scenarios-stamp.el Preserve user markers when inserting ERC date stamps 2023-11-04 15:36:24 -07:00
erc-scenarios-status-sidebar.el
erc-services-tests.el
erc-stamp-tests.el
erc-tests.el Favor ISUPPORT params for MODE processing in ERC 2023-11-18 12:34:56 -08:00
erc-track-tests.el