aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmail.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index d6a8f5868f5..35c7cbefeaa 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3422,9 +3422,12 @@ specifying headers which should not be copied into the new message."
3422 (insert "BCC: " (user-login-name) "\n")))) 3422 (insert "BCC: " (user-login-name) "\n"))))
3423 (goto-char (point-min)) 3423 (goto-char (point-min))
3424 (mail-position-on-field (if resending "Resent-To" "To") t))))) 3424 (mail-position-on-field (if resending "Resent-To" "To") t)))))
3425 (with-current-buffer rmail-this-buffer 3425 ;; save-window-excursion is needed because of the switch-to-buffer
3426 (if pruned 3426 ;; in rmail-toggle-header.
3427 (rmail-toggle-header 1)))))) 3427 (save-window-excursion
3428 (with-current-buffer rmail-this-buffer
3429 (if pruned
3430 (rmail-toggle-header 1)))))))
3428 3431
3429(defun rmail-summary-exists () 3432(defun rmail-summary-exists ()
3430 "Non-nil iff in an RMAIL buffer and an associated summary buffer exists. 3433 "Non-nil iff in an RMAIL buffer and an associated summary buffer exists.