gnu.emacs/test/lisp/erc
F. Jason Park 0300db0ae5 Remove choice from erc-dangerous-host-highlight-type
;; * etc/ERC-NEWS: Revise wording from recent mechanical change.

* lisp/erc/erc-match.el (erc-match--opt-pat-cache, erc-pals, erc-fools):
Update doc.
(erc-dangerous-host-highlight-type): Remove nonsensical
`nick-or-mention' value introduced for ERC 5.7 and Emacs 32 via
bug#73798.  It doesn't make sense to highlight mentions of a dangerous
host, only its associated nicknames, which ERC has no knowledge of.
(erc-match--opt-pat-get): Apply `sxhash-equal' to input in order to
protect keys from retroactive mutation.  Otherwise, a user applying
`setcar' to a cached `erc-fools' value could corrupt the cache.
(erc-match-mention-beg-rx-sexp, erc-match-mention-any-rx-sexp): New
variables to expose how ERC looks for "addressees" in a message body.
(erc-match--opt-pat-make-addr-beg): Defer to
`erc-match-mention-beg-rx-sexp' variable for regexp.
(erc-match--opt-pat-make-addr-end, erc-match--opt-pat-make-addr-any):
Rename former to latter and use `erc-match-mention-any-rx-sexp' for
regexp.
(erc-match--user-nuh-or-mention-p): Use updated function name.
(erc-match-highlight-by-part): Use `match-data' to detect the "last
thing searched" by the predicate.
* test/lisp/erc/erc-match-tests.el
(erc-match-message/fool/nick-or-mention): Remove test associated with
nonexistent value `nick-or-mention' for option
`erc-dangerous-host-highlight-type'.
(erc-match--opt-pat-cache): Use updated function name, sort character
alternatives in bracket expression, update format of expected output to
include hashes.

;; (erc-match-tests--hl-type-nick)
;; (erc-match-message/fool/nick)
;; (erc-match-message/dangerous-host/nick/legacy)
;; (erc-match-tests--hl-type-message)
;; (erc-match-message/dangerous-host/message)
;; (erc-match-message/dangerous-host/message/legacy)
;; (erc-match-tests--hl-type-all)
;; (erc-match-message/fool/all)
;; (erc-match-message/dangerous-host/all/legacy)
;; (erc-match-tests--hl-type-nick-or-keyword)
;; (erc-match-tests--hl-type-keyword): Use realistic value for
;; option `erc-dangerous-hosts'.
2026-08-18 19:47:02 -07:00
..
resources Make erc-settings a module 2026-06-30 20:28:07 -07:00
erc-button-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-dcc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-desktop-notifications-tests.el Use erc-match API for erc-desktop-notifications 2026-06-30 20:27:04 -07:00
erc-fill-tests.el Fix more missing faces on ERC margin strings 2026-06-01 23:09:55 -07:00
erc-goodies-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-join-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-match-tests.el Remove choice from erc-dangerous-host-highlight-type 2026-08-18 19:47:02 -07:00
erc-networks-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-nicks-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-notify-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-sasl-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-scenarios-auth-source.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-nick.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-query.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-samenet.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-attach.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-auto-recon.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-buffer-display.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-chan-modes.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-compat-rename-bouncer.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-kill-on-part.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-local-module-modes.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-local-modules.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-misc-regressions.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-base.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-both.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-samenet.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-query-participants.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-reconnect.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-renick.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-reuse-buffers.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-send-message.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-split-line.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-statusmsg.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-unstable.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-upstream-recon-soju.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-upstream-recon-znc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-display-message.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-fill-wrap.el ; Add erc-stamp test for right-margin face 2026-06-30 20:27:04 -07:00
erc-scenarios-ignore.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-internal.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-scenarios-join-auth-source.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-display-context.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-join-netid-newcmd-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-newcmd.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-recon-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-recon.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-timing.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-keep-place-indicator-trunc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-keep-place-indicator.el ; Tweak some ERC tests and related utilities 2026-04-30 15:46:29 -07:00
erc-scenarios-log-options.el Only perform erc-log-insert-log-on-open setup once 2026-04-30 15:46:42 -07:00
erc-scenarios-log.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-match-api.el Introduce lower level erc-match API 2026-06-30 20:27:04 -07:00
erc-scenarios-match.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-misc-commands.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-misc.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-nicks-track.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-prompt-format.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-sasl.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-scrolltobottom-relaxed.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-scrolltobottom.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-services-misc.el ; Remove some forward declarations from ERC tests 2026-05-12 20:27:39 -07:00
erc-scenarios-settings.el Make erc-settings a module 2026-06-30 20:28:07 -07:00
erc-scenarios-spelling.el ert-play-keys function 2026-04-16 13:30:42 +02:00
erc-scenarios-stamp.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-status-sidebar.el Remove assertion in erc-speedbar--dframe-controlled 2026-08-12 12:10:49 -07:00
erc-services-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-settings-tests.el Make erc-settings a module 2026-06-30 20:28:07 -07:00
erc-stamp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-tests.el Allow slashes and periods in ERC ISUPPORT params 2026-06-30 20:28:07 -07:00
erc-track-tests.el Add tests for erc-track-faces-normal-list regression 2026-03-23 18:16:31 -07:00