]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix behavior of gnus-summary-very-wide-reply with prefix arg
authorEric Abrahamsen <eric@ericabrahamsen.net>
Sat, 10 Feb 2024 18:33:51 +0000 (10:33 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Feb 2024 16:32:56 +0000 (17:32 +0100)
* lisp/gnus/gnus-msg.el (gnus-summary-very-wide-reply): If a prefix
argument has been given, the value of YANK will be a list containing the
current article number.  This should not be used to retrieve a number of
work articles; that should be derived from the value of the
current-prefix-arg (or marked articles).
* doc/misc/gnus.texi: The interplay of prefix arg and marked articles is
complex; attempt to clarify.

(cherry picked from commit 7a0ee5d65f214102734dd22edb641b164a1b73af)

doc/misc/gnus.texi
lisp/gnus/gnus-msg.el

index 08554d0d9b9399485ef82beac0b1cb3f68fa4661..2f8f97e58454a0f599d6e7b720eeab1c2a3145b1 100644 (file)
@@ -5832,10 +5832,11 @@ message to the mailing list, and include the original message
 @kindex S v @r{(Summary)}
 @findex gnus-summary-very-wide-reply
 Mail a very wide reply to the author of the current article
-(@code{gnus-summary-very-wide-reply}).  A @dfn{very wide reply} is a reply
-that goes out to all people listed in the @code{To}, @code{From} (or
-@code{Reply-To}) and @code{Cc} headers in all the process/prefixed
-articles.  This command uses the process/prefix convention.
+(@code{gnus-summary-very-wide-reply}).  A @dfn{very wide reply} is a
+reply that goes out to all people listed in the @code{To}, @code{From}
+(or @code{Reply-To}) and @code{Cc} headers in all the process/prefixed
+articles. This command uses the process/prefix convention.  If given a
+prefix argument, the body of the current article will also be yanked.
 
 @item S V
 @kindex S V @r{(Summary)}
index fdf97e1aabd0a0805728b475b5d1966a3aa0552f..b18ede58fbf0cfa48eb9a731eb1580bf50568a96 100644 (file)
@@ -1189,12 +1189,12 @@ Uses the process/prefix convention.
 The reply will include all From/Cc headers from the original
 messages as the To/Cc headers.
 
-If prefix argument YANK is non-nil, the original article(s) will
+If prefix argument YANK is non-nil, the original article will
 be yanked automatically."
   (interactive (list (and current-prefix-arg
                          (gnus-summary-work-articles 1)))
               gnus-summary-mode)
-  (gnus-summary-reply yank t (gnus-summary-work-articles yank)))
+  (gnus-summary-reply yank t (gnus-summary-work-articles current-prefix-arg)))
 
 (defun gnus-summary-very-wide-reply-with-original (n)
   "Start composing a very wide reply mail a set of messages.