aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2011-06-23 12:38:40 -0400
committerRichard M. Stallman2011-06-23 12:38:40 -0400
commitf444564c73d7c7546d60d2d899a02cf838316c6c (patch)
tree910bcc832619af81d6e31d2590acfa0e3543dfdd
parent56c2cc9a95c6ca8b7df05d4e94635563bc622cc3 (diff)
downloademacs-f444564c73d7c7546d60d2d899a02cf838316c6c.tar.gz
emacs-f444564c73d7c7546d60d2d899a02cf838316c6c.zip
Marking message as "seen" should not mark buffer as changed.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/mail/rmail.el7
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1a64321c5f5..6b5f33a7782 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
12011-06-23 Richard Stallman <rms@gnu.org> 12011-06-23 Richard Stallman <rms@gnu.org>
2 2
3 * mail/rmail.el (rmail-retry-ignored-headers): Add message-id. 3 * mail/rmail.el (rmail-retry-ignored-headers): Add message-id.
4 (rmail-show-message-1): Preserve buffer modified flag.
4 5
52011-06-23 Michael Albinus <michael.albinus@gmx.de> 62011-06-23 Michael Albinus <michael.albinus@gmx.de>
6 7
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index a65c8376642..33f87d634a3 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2669,8 +2669,11 @@ The current mail message becomes the message displayed."
2669 (t (setq rmail-current-message msg))) 2669 (t (setq rmail-current-message msg)))
2670 (with-current-buffer rmail-buffer 2670 (with-current-buffer rmail-buffer
2671 (setq header-style rmail-header-style) 2671 (setq header-style rmail-header-style)
2672 ;; Mark the message as seen 2672 ;; Mark the message as seen, but preserve buffer modified flag.
2673 (rmail-set-attribute rmail-unseen-attr-index nil) 2673 (let ((modiff (buffer-modified-p)))
2674 (rmail-set-attribute rmail-unseen-attr-index nil)
2675 (unless modiff
2676 (set-buffer-modified-p nil)))
2674 ;; bracket the message in the mail 2677 ;; bracket the message in the mail
2675 ;; buffer and determine the coding system the transfer encoding. 2678 ;; buffer and determine the coding system the transfer encoding.
2676 (rmail-swap-buffers-maybe) 2679 (rmail-swap-buffers-maybe)