]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/gnus-msg.el (gnus-summary-cancel-article): Allow cancelling articles that...
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 6 Feb 2014 05:43:50 +0000 (05:43 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 6 Feb 2014 05:43:50 +0000 (05:43 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-msg.el

index 560d03439c1bef4e9bdd8ef414af5619965368da..df676146a7083592cc2bc389d6717ba8a8b14b83 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-msg.el (gnus-summary-cancel-article): `user-mail-address' is
+       buffer-local in some buffers, so bind it explicitly in the buffer we're
+       trying to cancel the article in (bug#10808).
+
 2014-02-05  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-int.el (gnus-request-accept-article): Doc fix.
index 2ff70071b1ce5230683e96bb1224fea06a6582c8..1c8635c5992bc03cfd70c2aa579ff8db5e227968 100644 (file)
@@ -862,7 +862,7 @@ post using the current select method."
   (let ((message-post-method
         `(lambda (arg)
            (gnus-post-method (eq ',symp 'a) ,gnus-newsgroup-name)))
-       (user-mail-address user-mail-address))
+       (custom-address user-mail-address))
     (dolist (article (gnus-summary-work-articles n))
       (when (gnus-summary-select-article t nil nil article)
        ;; Pretend that we're doing a followup so that we can see what
@@ -872,12 +872,13 @@ post using the current select method."
            (gnus-summary-followup nil)
            (let ((from (message-fetch-field "from")))
              (when from
-               (setq user-mail-address
+               (setq custom-address
                      (car (mail-header-parse-address from)))))
            (kill-buffer (current-buffer))))
        ;; Now cancel the article using the From header we got.
        (when (gnus-eval-in-buffer-window gnus-original-article-buffer
-               (message-cancel-news))
+               (let ((user-mail-address (or custom-address user-mail-address)))
+                 (message-cancel-news)))
          (gnus-summary-mark-as-read article gnus-canceled-mark)
          (gnus-cache-remove-article 1))
        (gnus-article-hide-headers-if-wanted))