all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#66715: 30.0.50; Minor issues with Gnus defcustoms
@ 2023-10-23 20:59 Mauro Aranda
  2023-10-23 21:05 ` Mauro Aranda
  0 siblings, 1 reply; 3+ messages in thread
From: Mauro Aranda @ 2023-10-23 20:59 UTC (permalink / raw)
  To: 66715

I went through the Gnus directory, and found the following issues with
its defcustoms:

- gnus-button-prefer-mid-or-mail: Says the value might be a function,
   but doesn't list that as a choice.

- gnus-bookmark-bookmark-inline-details: The docstring says (subject) is
   the default value, but it actually is (author).

- gnus-simplify-subject-fuzzy-regexp: Says the value might be a single
   regexp, but doesn't allow it.

- message-indent-citation-function: Says value might be a list of
   functions, but doesn't allow it.

- message-mail-alias-type: Says value might be a list, but doesn't allow
   it.

- message-dont-reply-to-names: Says value might be a function, but
   doesn't allow it.

- spam-report-url-ping-function: The default value for the function
   widget is nil, which is wrong.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#66715: 30.0.50; Minor issues with Gnus defcustoms
  2023-10-23 20:59 bug#66715: 30.0.50; Minor issues with Gnus defcustoms Mauro Aranda
@ 2023-10-23 21:05 ` Mauro Aranda
  2023-10-23 21:19   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Mauro Aranda @ 2023-10-23 21:05 UTC (permalink / raw)
  To: 66715

[-- Attachment #1: Type: text/plain, Size: 39 bytes --]

tags 66715 patch
quit


Patch attached.

[-- Attachment #2: 0001-Fix-minor-defcustom-issues-in-Gnus-Bug-66715.patch --]
[-- Type: text/x-patch, Size: 5271 bytes --]

From 7b01f87255a4d16f2f95262cae598164eede769f Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Mon, 23 Oct 2023 18:04:25 -0300
Subject: [PATCH] Fix minor defcustom issues in Gnus (Bug#66715)

* lisp/gnus/gnus-art.el (gnus-button-prefer-mid-or-mail): Allow
function and add :tag to const values.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bookmark-inline-details):
Fix docstring.
* lisp/gnus/gnus-sum.el (gnus-simplify-subject-fuzzy-regexp): Allow a
single regexp as value.
* lisp/gnus/message.el (message-indent-citation-function): Allow a
single function as value.
(message-mail-alias-type): Allow for a list of options as value.
(message-dont-reply-to-names): Allow a function as value.
* lisp/gnus/spam-report.el (spam-report-url-ping-function): Fix
default value for the function widget.
---
 lisp/gnus/gnus-art.el      | 12 +++++++-----
 lisp/gnus/gnus-bookmark.el |  2 +-
 lisp/gnus/gnus-sum.el      |  3 ++-
 lisp/gnus/message.el       | 13 ++++++++-----
 lisp/gnus/spam-report.el   |  2 +-
 5 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 6f201f9c3df..bd9a49eb6a5 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1622,7 +1622,8 @@ gnus-article-encrypt-protocol
   "The protocol used for encrypt articles.
 It is a string, such as \"PGP\".  If nil, ask user."
   :version "22.1"
-  :type 'string
+  :type '(choice (const :tag "Ask me" nil)
+                 string)
   :group 'mime-security)
 
 (defcustom gnus-use-idna t
@@ -7560,10 +7561,11 @@ gnus-button-prefer-mid-or-mail
   :version "22.1"
   :group 'gnus-article-buttons
   :type '(choice (function-item :tag "Heuristic function"
-				gnus-button-mid-or-mail-heuristic)
-		 (const ask)
-		 (const mid)
-		 (const mail)))
+                                gnus-button-mid-or-mail-heuristic)
+                 (const :tag "Query me" ask)
+                 (const :tag "Assume it's a message ID" mid)
+                 (const :tag "Assume it's a mail address" mail)
+                 function))
 
 (defcustom gnus-button-mid-or-mail-heuristic-alist
   '((-10.0 . ".+\\$.+@")
diff --git a/lisp/gnus/gnus-bookmark.el b/lisp/gnus/gnus-bookmark.el
index 1a926619e14..ce8220f3a6e 100644
--- a/lisp/gnus/gnus-bookmark.el
+++ b/lisp/gnus/gnus-bookmark.el
@@ -112,7 +112,7 @@ gnus-bookmark-use-annotations
 
 (defcustom gnus-bookmark-bookmark-inline-details '(author)
   "Details to be shown with `gnus-bookmark-bmenu-toggle-infos'.
-The default value is \(subject)."
+The default value is (author)."
   :type '(list :tag "Gnus bookmark details"
 	       (set :inline t
 		    (const :tag "Author" author)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f576d4e6147..eee2714c63f 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -322,7 +322,8 @@ gnus-simplify-subject-fuzzy-regexp
 that will be removed from subject strings if fuzzy subject
 simplification is selected."
   :group 'gnus-thread
-  :type '(repeat regexp))
+  :type '(choice regexp
+                 (repeat regexp)))
 
 (defcustom gnus-show-threads t
   "If non-nil, display threads in summary mode."
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 0071c02c081..0f5d253bc96 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1145,7 +1145,8 @@ message-indent-citation-function
 This can also be a list of functions.  Each function can find the
 citation between (point) and (mark t).  And each function should leave
 point and mark around the citation text as modified."
-  :type 'function
+  :type '(choice function
+                 (repeat function))
   :link '(custom-manual "(message)Insertion Variables")
   :group 'message-insertion)
 
@@ -1406,8 +1407,9 @@ message-mail-alias-type
   :group 'message
   :link '(custom-manual "(message)Mail Aliases")
   :type '(choice (const :tag "Use Mailabbrev" abbrev)
-		 (const :tag "Use ecomplete" ecomplete)
-		 (const :tag "No expansion" nil)))
+                 (const :tag "Use ecomplete" ecomplete)
+                 (set (const :tag "Use Mailabbrev" abbrev)
+                      (const :tag "Use ecomplete" ecomplete))))
 
 (defcustom message-self-insert-commands '(self-insert-command)
   "List of `self-insert-command's used to trigger ecomplete.
@@ -1451,8 +1453,9 @@ message-dont-reply-to-names
   :group 'message
   :link '(custom-manual "(message)Wide Reply")
   :type '(choice (const :tag "Yourself" nil)
-		 regexp
-		 (repeat :tag "Regexp List" regexp)))
+                 regexp
+                 (repeat :tag "Regexp List" regexp)
+                 function))
 
 (defsubst message-dont-reply-to-names ()
   (if (functionp message-dont-reply-to-names)
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el
index 7e0392797f9..9f1ec7e3677 100644
--- a/lisp/gnus/spam-report.el
+++ b/lisp/gnus/spam-report.el
@@ -64,7 +64,7 @@ spam-report-url-ping-function
 		 spam-report-url-ping-mm-url)
 	  (const :tag "Store request URLs in `spam-report-requests-file'"
 		 spam-report-url-to-file)
-	  (function :tag "User defined function" nil)))
+	  (function :tag "User defined function")))
 
 (defcustom spam-report-requests-file
   (nnheader-concat gnus-directory "spam/" "spam-report-requests.url")
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#66715: 30.0.50; Minor issues with Gnus defcustoms
  2023-10-23 21:05 ` Mauro Aranda
@ 2023-10-23 21:19   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2023-10-23 21:19 UTC (permalink / raw)
  To: Mauro Aranda, 66715-done

Version: 29.2

Mauro Aranda <maurooaranda@gmail.com> writes:

> Patch attached.

Thanks, installed on emacs-29.

[1: 297fe945c57]: 2023-10-23 23:16:13 +0200
  Fix minor defcustom issues in Gnus (Bug#66715)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=297fe945c57c33b51b890ea105d5f7c15a520bd0





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-23 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 20:59 bug#66715: 30.0.50; Minor issues with Gnus defcustoms Mauro Aranda
2023-10-23 21:05 ` Mauro Aranda
2023-10-23 21:19   ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.