Fix invalid defcustom type for erc-buffers option
authorF. Jason Park <jp@neverwas.me>
Fri, 12 Jul 2024 21:41:54 +0000 (14:41 -0700)
committerF. Jason Park <jp@neverwas.me>
Fri, 12 Jul 2024 21:51:36 +0000 (14:51 -0700)
* lisp/erc/erc.el (erc-ensure-target-buffer-on-privmsg): Change
invalid inner `choice' to a `const' for the third-state `status'
variant, which is new in ERC 5.6 and Emacs 30.  Thanks to Mattias
EngdegĂ„rd for catching this.

lisp/erc/erc.el

index 7cc7bf56252a31fa7104e99bc285eedafbb0f2d6..fd2a49c25046cd513313d19537d6be400014f546 100644 (file)
@@ -6033,8 +6033,7 @@ manner implied above, which was lost sometime before ERC 5.4."
   :group 'erc-buffers
   :group 'erc-query
   :type '(choice boolean
-                 (choice :tag "Create pseudo queries for STATUSMSGs"
-                         status)))
+                 (const :tag "Create pseudo queries for STATUSMSGs" status)))
 
 (defcustom erc-format-query-as-channel-p t
   "If non-nil, format text from others in a query buffer like in a channel.