diff options
| author | Lars Magne Ingebrigtsen | 2015-02-13 08:16:39 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-02-13 08:16:39 +0000 |
| commit | f61c87f12a36bb2063c25b6742380b5916618ab5 (patch) | |
| tree | 1dfe8f67f8f604a2569f3ce822e9a2437ce080cd | |
| parent | a8f93d14cbc7a54bc09c7e4d841331588e86afa6 (diff) | |
| download | emacs-f61c87f12a36bb2063c25b6742380b5916618ab5.tar.gz emacs-f61c87f12a36bb2063c25b6742380b5916618ab5.zip | |
lisp/gnus/gnus-msg.el (gnus-msg-mail): Buffer-local warning fix (bug#19573)
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9ff191d05c0..67929a30186 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2015-02-13 Lars Ingebrigtsen <larsi@gnus.org> | 1 | 2015-02-13 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-msg.el (gnus-msg-mail): Don't let-bind `gnus-newsgroup-name' so | ||
| 4 | that we don't get a warning when setting the buffer-local variable | ||
| 5 | (bug#19573). | ||
| 6 | |||
| 3 | * nnmail.el (nnmail-expiry-target-group): Supply the info structure to | 7 | * nnmail.el (nnmail-expiry-target-group): Supply the info structure to |
| 4 | `gnus-request-group'. | 8 | `gnus-request-group'. |
| 5 | 9 | ||
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 6c80c0daca6..bfd3da2e69d 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -541,11 +541,15 @@ instead." | |||
| 541 | nil yank-action send-actions return-action)) | 541 | nil yank-action send-actions return-action)) |
| 542 | (let ((buf (current-buffer)) | 542 | (let ((buf (current-buffer)) |
| 543 | ;; Don't use posting styles corresponding to any existing group. | 543 | ;; Don't use posting styles corresponding to any existing group. |
| 544 | (gnus-newsgroup-name "") | 544 | (group-name gnus-newsgroup-name) |
| 545 | mail-buf) | 545 | mail-buf) |
| 546 | (gnus-setup-message 'message | 546 | (unwind-protect |
| 547 | (message-mail to subject other-headers continue | 547 | (progn |
| 548 | nil yank-action send-actions return-action)) | 548 | (setq gnus-newsgroup-name "") |
| 549 | (gnus-setup-message 'message | ||
| 550 | (message-mail to subject other-headers continue | ||
| 551 | nil yank-action send-actions return-action))) | ||
| 552 | (setq gnus-newsgroup-name group-name)) | ||
| 549 | (when switch-action | 553 | (when switch-action |
| 550 | (setq mail-buf (current-buffer)) | 554 | (setq mail-buf (current-buffer)) |
| 551 | (switch-to-buffer buf) | 555 | (switch-to-buffer buf) |