Backport: Don't autoload erc-modules
authorF. Jason Park <jp@neverwas.me>
Tue, 15 Oct 2024 02:32:16 +0000 (19:32 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 16 Nov 2024 16:17:46 +0000 (08:17 -0800)
* doc/misc/erc.texi (Modules): Recommend using `describe-variable'
instead of `customize-option' because the latter needs the symbol to be
loaded.
* lisp/erc/erc.el (erc-modules): Remove autoload cookie because it
caused customizations for this option to load the main library.  This
reverts the thrust of bb894845 "Teach customize-option about
erc-modules", which was added in ERC 5.6 and Emacs 30.  The motivation
for the original offending change was to allow new users to run M-x
customize-option RET erc-modules RET immediately after startup instead
of M-x customize-group RET, followed by an I-search.  (Bug#73812)

(Cherry picked from commit 1854f2751e3f73e1e5f12f6de993b6357de1766b)

Do not merge to master.

doc/misc/erc.texi
lisp/erc/erc.el

index 1e973d9c4347610ce661b30f807508f510cdf5eb..aa0bc58a8ec39f545d7c22964ea393141a17824e 100644 (file)
@@ -411,8 +411,9 @@ Kill current input line using @code{erc-bol} followed by @code{kill-line}.
 One way to add functionality to ERC is to customize which of its many
 modules are loaded.
 
-There is a spiffy customize interface, which may be reached by typing
-@kbd{M-x customize-option @key{RET} erc-modules @key{RET}}.  When
+You can do this by typing @kbd{C-h v erc-modules @key{RET}} and clicking
+@samp{customize} near the bottom of the resulting help buffer, where it
+says ``You can @emph{customize} this variable.''  When
 removing a module outside of Customize, you may wish to ensure it's
 disabled by invoking its associated minor-mode toggle with a
 nonpositive prefix argument, for example, @kbd{C-u - M-x
index 30641c2bd88d2100b442c75b62cb14522342062b..688d2f4b1aed659d274c877e62739d7159b35072 100644 (file)
@@ -2263,8 +2263,6 @@ buffer rather than a server buffer.")
       (cl-pushnew mod (if (get mod 'erc--module) built-in third-party)))
     `(,@(sort built-in #'string-lessp) ,@(nreverse third-party))))
 
-;;;###autoload(custom-autoload 'erc-modules "erc")
-
 (defcustom erc-modules '( autojoin button completion fill imenu irccontrols
                           list match menu move-to-prompt netsplit
                           networks readonly ring stamp track)