summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-msg.el
diff options
context:
space:
mode:
authorGnus developers <ding@gnus.org>2011-06-26 12:41:14 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2011-06-26 12:41:14 +0000
commit60a0884e784668ab9cb0f6c984803efccdecce53 (patch)
treecb01fe616177889cf87ed14adfe268cad4c84c9c /lisp/gnus/gnus-msg.el
parent7ca8fc42baeb89a0d5f84b6c8549fdf6f3d8d0e6 (diff)
downloademacs-60a0884e784668ab9cb0f6c984803efccdecce53.tar.gz
emacs-60a0884e784668ab9cb0f6c984803efccdecce53.tar.bz2
emacs-60a0884e784668ab9cb0f6c984803efccdecce53.zip
Merge changes made in Gnus trunk.
gnus.texi (Summary Mail Commands): Document `gnus-summary-reply-to-list-with-original'. auth-source.el (with-auth-source-epa-overrides): Fix compilation error with `find-file-hooks' on Emacs 22. (with-auth-source-epa-overrides): Ugly hack to Wrap the `find-file-hook' things in `symbol-value' to avoid compilation warnings on all architectures. spam.el (spam-stat): Require in a normal fashion without binding `spam-stat-install-hooks' to avoid compilation warnings. spam-stat.el (spam-stat-install-hooks): Removed. (spam-stat-install-hooks): Don't run automatically. gnus-msg.el (gnus-summary-reply-to-list-with-original): New command and keystroke.
Diffstat (limited to 'lisp/gnus/gnus-msg.el')
-rw-r--r--lisp/gnus/gnus-msg.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 093eec33fcd..e256446c016 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -351,6 +351,7 @@ Thank you for your help in stamping out bugs.
"r" gnus-summary-reply
"y" gnus-summary-yank-message
"R" gnus-summary-reply-with-original
+ "L" gnus-summary-reply-to-list-with-original
"w" gnus-summary-wide-reply
"W" gnus-summary-wide-reply-with-original
"v" gnus-summary-very-wide-reply
@@ -1154,6 +1155,16 @@ The original article will be yanked."
(interactive "P")
(gnus-summary-reply (gnus-summary-work-articles n) wide))
+(defun gnus-summary-reply-to-list-with-original (n &optional wide)
+ "Start composing a reply mail to the current message.
+The reply goes only to the mailing list.
+The original article will be yanked."
+ (interactive "P")
+ (let ((message-reply-to-function
+ (lambda nil
+ `((To . ,(gnus-mailing-list-followup-to))))))
+ (gnus-summary-reply (gnus-summary-work-articles n) wide)))
+
(defun gnus-summary-reply-broken-reply-to (&optional yank wide very-wide)
"Like `gnus-summary-reply' except removing reply-to field.
If prefix argument YANK is non-nil, the original article is yanked