changeset 101396:6505850d379f

(rmail-write-region-annotate): Only switch buffer if start is nil, as was done in tar-mode.el.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 23 Jan 2009 08:00:23 +0000
parents d2c49097995e
children b4aa70dece55
files lisp/ChangeLog lisp/mail/rmail.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 23 05:07:37 2009 +0000
+++ b/lisp/ChangeLog	Fri Jan 23 08:00:23 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* mail/rmail.el (rmail-write-region-annotate): Only switch buffer if
+	start is nil, as was done in tar-mode.el.
+
 2009-01-23  Glenn Morris  <rgm@gnu.org>
 
 	* mail/sendmail.el (mail-bury): Revert previous change now pmail is no
--- a/lisp/mail/rmail.el	Fri Jan 23 05:07:37 2009 +0000
+++ b/lisp/mail/rmail.el	Fri Jan 23 08:00:23 2009 +0000
@@ -3878,7 +3878,7 @@
 
 ;; Used in `write-region-annotate-functions' to write rmail files.
 (defun rmail-write-region-annotate (start end)
-  (when (rmail-buffers-swapped-p)
+  (when (and (null start) (rmail-buffers-swapped-p))
     (set-buffer rmail-view-buffer)
     (widen)
     nil))