Subject: Re: bug#74759: 30.0.92; Gnus configuration warning

From: Robert Pluim <[email-masked]>
Date: Tue, 10 Dec 2024 15:01:16 +0100

>>>>> On Tue, 10 Dec 2024 12:58:17 +0100, Robert Pluim <[email-masked]> said:
    Robert> Itʼs an oversight in the definition of the custom type of
    Robert> `gnus-select-method'. Iʼll see if I can come up with a fix.

This works for me. Maintainers, master or emacs-30? (Iʼd lean towards
the latter)

Robert
-- 

>From d14a9c0d71e0e2240c97e449f4875577e7b44f73 Mon Sep 17 00:00:00 2001
From: Robert Pluim <[email-masked]>
Date: Tue, 10 Dec 2024 14:56:21 +0100
Subject: [PATCH] Fix 'gnus-select-method' custom type
To: [email-masked]

* lisp/gnus/gnus.el (gnus-redefine-select-method-widget): Cater
for the 'gnus-search-engine' configuration variable, which takes
2 args instead of 1.   (Bug#74759)
---
 lisp/gnus/gnus.el | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 62a090bd9df..0d0e678309f 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1402,9 +1402,14 @@ gnus-redefine-select-method-widget
 	    (string :tag "Address")
 	    (repeat :tag "Options"
 		    :inline t
-		    (list :format "%v"
-			  variable
-			  (sexp :tag "Value"))))))
+                    (radio
+		     (list :tag "Single var" :format "%v"
+			   variable
+			   (sexp :tag "Value"))
+                     (list :tag "Multiple var" :format "%v"
+			   variable
+                           variable
+			   (sexp :tag "Value")))))))
 
 (gnus-redefine-select-method-widget)
 
-- 
2.39.5