aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog11
-rw-r--r--lisp/gnus/gnus-msg.el20
2 files changed, 28 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index a51b9401caf..df3fa715751 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12012-06-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-msg.el (gnus-msg-mail): Warn the user about Gnus not running
4 (bug#11514).
5
12012-06-01 Stefan Monnier <monnier@iro.umontreal.ca> 62012-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * nntp.el: Stop the `letf' madness. 8 * nntp.el: Stop the `letf' madness.
@@ -98,6 +103,12 @@
98 * gnus-start.el (gnus-read-newsrc-el-file): Protect against broken 103 * gnus-start.el (gnus-read-newsrc-el-file): Protect against broken
99 .newsrc.el files. 104 .newsrc.el files.
100 105
1062012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
107
108 * gnus-msg.el (gnus-summary-cancel-article): See what From header we
109 would have gotten if we posted to the group, and use that to compare
110 against the message we want to cancel (bug#10808).
111
1012012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> 1122012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
102 113
103 * auth-source.el (auth-source-netrc-create): Quote tokens that contain 114 * auth-source.el (auth-source-netrc-create): Quote tokens that contain
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index c6d0c3213a0..a041a85d444 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -487,8 +487,10 @@ If Gnus isn't running, a plain `message-mail' setup is used
487instead." 487instead."
488 (interactive) 488 (interactive)
489 (if (not (gnus-alive-p)) 489 (if (not (gnus-alive-p))
490 (message-mail to subject other-headers continue 490 (progn
491 nil yank-action send-actions return-action) 491 (message "Gnus not running; using plain Message mode")
492 (message-mail to subject other-headers continue
493 nil yank-action send-actions return-action))
492 (let ((buf (current-buffer)) 494 (let ((buf (current-buffer))
493 (gnus-newsgroup-name (or gnus-newsgroup-name "")) 495 (gnus-newsgroup-name (or gnus-newsgroup-name ""))
494 mail-buf) 496 mail-buf)
@@ -810,9 +812,21 @@ post using the current select method."
810 (interactive (gnus-interactive "P\ny")) 812 (interactive (gnus-interactive "P\ny"))
811 (let ((message-post-method 813 (let ((message-post-method
812 `(lambda (arg) 814 `(lambda (arg)
813 (gnus-post-method (eq ',symp 'a) ,gnus-newsgroup-name)))) 815 (gnus-post-method (eq ',symp 'a) ,gnus-newsgroup-name)))
816 (user-mail-address user-mail-address))
814 (dolist (article (gnus-summary-work-articles n)) 817 (dolist (article (gnus-summary-work-articles n))
815 (when (gnus-summary-select-article t nil nil article) 818 (when (gnus-summary-select-article t nil nil article)
819 ;; Pretend that we're doing a followup so that we can see what
820 ;; the From header would have ended up being.
821 (save-window-excursion
822 (save-excursion
823 (gnus-summary-followup nil)
824 (let ((from (message-fetch-field "from")))
825 (when from
826 (setq user-mail-address
827 (car (mail-header-parse-address from)))))
828 (kill-buffer (current-buffer))))
829 ;; Now cancel the article using the From header we got.
816 (when (gnus-eval-in-buffer-window gnus-original-article-buffer 830 (when (gnus-eval-in-buffer-window gnus-original-article-buffer
817 (message-cancel-news)) 831 (message-cancel-news))
818 (gnus-summary-mark-as-read article gnus-canceled-mark) 832 (gnus-summary-mark-as-read article gnus-canceled-mark)