emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c297b828bb7 2/2: Fix custom type of erc-autojoin-channels-alist


From: F. Jason Park
Subject: master c297b828bb7 2/2: Fix custom type of erc-autojoin-channels-alist
Date: Sun, 21 May 2023 23:45:49 -0400 (EDT)

branch: master
commit c297b828bb716885f92d3117c2abbb1ff21dbb08
Author: F. Jason Park <jp@neverwas.me>
Commit: F. Jason Park <jp@neverwas.me>

    Fix custom type of erc-autojoin-channels-alist
    
    * lisp/erc/erc-join.el (erc-autojoin-channels-alist): In ERC 5.4, the
    type of this option changed to accept symbols signifying IRC network
    names.  However, the option's definition was not updated to reflect
    that.  See commit 9bb8d90cddf "Allow irc network symbols in
    erc-autojoin-channels-alist".
---
 lisp/erc/erc-join.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/erc/erc-join.el b/lisp/erc/erc-join.el
index 17104da1a8b..45cfd565f89 100644
--- a/lisp/erc/erc-join.el
+++ b/lisp/erc/erc-join.el
@@ -78,10 +78,11 @@ keeps track of what channels you are on, and will join them
 again when you get disconnected.  When you restart Emacs, however,
 those changes are lost, and the customization you saved the last
 time is used again."
-  :type '(repeat (cons :tag "Server"
-                      (regexp :tag "Name")
-                      (repeat :tag "Channels"
-                              (string :tag "Name")))))
+  :type '(alist :options (Libera.Chat)
+                :key-type (choice :tag "Server"
+                                  (symbol :tag "Network")
+                                  (regexp :tag "Host or domain"))
+                :value-type (repeat :tag "Channels" (string :tag "Name"))))
 
 (defcustom erc-autojoin-timing 'connect
   "When ERC should attempt to autojoin a channel.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]