]> git.eshelyaron.com Git - emacs.git/commitdiff
Autoload custom-loads for new Custom groups in erc.el
authorF. Jason Park <jp@neverwas.me>
Sun, 4 Feb 2024 01:17:48 +0000 (17:17 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:02:41 +0000 (14:02 +0100)
* lisp/erc/erc.el: Add `custom-loads' library features for group
symbols `erc-spelling' and `erc-imenu' since they aren't defined in
all supported Emacs versions.  Also add groups `erc-sasl' and
`erc-nicks', new libraries recently added to ERC.  Note that this is
unrelated to prefixes generated for the help system.  (Bug#68943)

(cherry picked from commit 1a36d52413c784750f650ccba95436e4f76ab104)

lisp/erc/erc.el

index 882276880641167aca9848064b9f1dda3eebde21..db5a9baf5c3add92f9bc3434c70771f7a1c2bf4e 100644 (file)
@@ -135,6 +135,13 @@ concerning buffers."
   "Running scripts at startup and with /LOAD."
   :group 'erc)
 
+;; Add `custom-loads' features for group symbols missing from a
+;; supported Emacs version, possibly because they belong to a new ERC
+;; library.  These groups all share their library's feature name.
+;;;###autoload(dolist (symbol '( erc-sasl erc-spelling ; 29
+;;;###autoload                   erc-imenu erc-nicks)) ; 30
+;;;###autoload  (custom-add-load symbol symbol))
+
 (defvar erc-message-parsed) ; only known to this file
 
 (defvar erc--msg-props nil