]> git.eshelyaron.com Git - emacs.git/commitdiff
; Undo erroneous change in ERC's sample configuration
authorF. Jason Park <jp@neverwas.me>
Sat, 12 Oct 2024 01:12:16 +0000 (18:12 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 18:54:55 +0000 (20:54 +0200)
* doc/misc/erc.texi (Sample Configuration): Remove `erc-modules' from
the `:custom' section of the `use-package' declaration for feature `erc'
because its presence there depends on `:defer' being non-nil, and this
configuration is supposed to be `:defer' agnostic.  This reverts part of
3f1ce47f "; Add face customization to ERC's sample config".
* etc/ERC-NEWS: Mention `erc-modules' no longer being autoloaded.
* lisp/erc/erc-match.el (erc-text-matched-hooks): Explain expected
format of non-NUH matches.
* test/lisp/erc/erc-match-tests.el (test/lisp/erc/erc-match-tests.el):
Inhibit messages when running non-interactively.

(cherry picked from commit b00f400d1d3f954e460ea979f07f38f6bb31630e)

doc/misc/erc.texi
etc/ERC-NEWS
lisp/erc/erc-match.el
test/lisp/erc/erc-match-tests.el

index 9368c9ce070ea72e5cf3b1798976120d67878689..939d93d6aa8f8518ed232a0c40471d709e9af194 100644 (file)
@@ -1324,11 +1324,14 @@ settings (@pxref{Sample configuration via Customize}).
 ;;; My ERC configuration -*- lexical-binding: t -*-
 
 (use-package erc
-  :custom
+  :config
   ;; Prefer SASL to NickServ, colorize nicknames, and show side panels
-  ;; with joined channels and members.
-  (erc-modules (append '(sasl nicks bufbar nickbar scrolltobottom)
-                       erc-modules))
+  ;; with joined channels and members
+  (setopt erc-modules
+          (seq-union '(sasl nicks bufbar nickbar scrolltobottom)
+                     erc-modules))
+
+  :custom
   ;; Protect me from accidentally sending excess lines.
   (erc-inhibit-multiline-input t)
   (erc-send-whitespace-lines t)
index ea65a170b38d33fa98b1064d309e2ceb0d1f84b2..39403c174863b9dcb07ab4596027837dcbddaf63 100644 (file)
@@ -26,6 +26,13 @@ In fast-moving channels and in queries with long-winded bots, the
 on account of a rather stingy buffering threshold of 512 characters.
 Now configurable, its default has been relaxed eightfold to 4096.
 
+** Option 'erc-modules' no longer autoloaded.
+This cornerstone of ERC's configuration system was autoloaded globally
+in 5.6 to allow users the freedom of running 'customize-option' without
+first having to load the package.  Unfortunately, this also had the side
+effect of arranging for ERC to load on startup whenever someone
+customized the variable.
+
 ** Stray key binding removed from 'erc-fill-wrap-mode-map'.
 The command 'erc-fill-wrap-cycle-visual-movement' was mistakenly given
 the key binding "C-c a" in an inadvertent holdover from development.  It
index e28e7122ccee7f3665ec57a61465f906d0e5c1a2..6dc18bf250e1630304b76c52bb52c8721e31a672 100644 (file)
@@ -240,10 +240,14 @@ for beeping to work."
 
 (defcustom erc-text-matched-hook '(erc-log-matches)
   "Abnormal hook for visiting text matching a predefined \"type\".
-ERC calls members with the arguments (MATCH-TYPE NUH MESSAGE),
-where MATCH-TYPE is one of the symbols `current-nick', `keyword',
-`pal', `dangerous-host', `fool', and NUH is an `erc-response'
-sender, like bob!~bob@example.org."
+ERC calls members with the arguments (MATCH-TYPE NUH MESSAGE), where
+MATCH-TYPE is a symbol among `current-nick', `keyword', `pal',
+`dangerous-host', and `fool'; and NUH is an `erc-response' sender, like
+\"bob!~bob@example.org\" or an IRC command prefixed with the string
+\"Server:\", as in \"Server:353\".  MESSAGE is the current incarnation
+of the just-inserted message minus a leading speaker, like \"<bob> \".
+For traditional reasons, MESSAGE always includes a leading
+`erc-notice-prefix' and a trailing newline."
   :options '(erc-log-matches erc-hide-fools erc-beep-on-match)
   :type 'hook)
 
index d22a945724b22bbb6d3450c4b2b85ad684c2ecba..fb92a153c9528941453f24e3922f9599ff82922b 100644 (file)
 
 (defun erc-match-tests--log-matches ()
   (let ((erc-log-matches-flag t)
-        (erc-timestamp-format "[@@TS@@]"))
+        (erc-timestamp-format "[@@TS@@]")
+        (inhibit-message noninteractive))
     (erc-match-tests--hl-type-keyword)
     (with-current-buffer "*scratch*"
       (ert-simulate-keys "\t\r"