]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't autoload erc-modules
authorF. Jason Park <jp@neverwas.me>
Tue, 15 Oct 2024 02:32:16 +0000 (19:32 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 18:55:03 +0000 (20:55 +0200)
* 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)

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

index 939d93d6aa8f8518ed232a0c40471d709e9af194..a3802c8c6bf640b4f440671d99e4e3ef9ff92755 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 94045581e27c884604b0fdbc4afd521b67cd36a8..fc6fdb65e37eadb49192e3f6d920227a4adace36 100644 (file)
@@ -2267,8 +2267,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)