mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
Marking message as "seen" should not mark buffer as changed.
This commit is contained in:
parent
56c2cc9a95
commit
f444564c73
@ -1,6 +1,7 @@
|
||||
2011-06-23 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* mail/rmail.el (rmail-retry-ignored-headers): Add message-id.
|
||||
(rmail-show-message-1): Preserve buffer modified flag.
|
||||
|
||||
2011-06-23 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
|
@ -2669,8 +2669,11 @@ The current mail message becomes the message displayed."
|
||||
(t (setq rmail-current-message msg)))
|
||||
(with-current-buffer rmail-buffer
|
||||
(setq header-style rmail-header-style)
|
||||
;; Mark the message as seen
|
||||
(rmail-set-attribute rmail-unseen-attr-index nil)
|
||||
;; Mark the message as seen, but preserve buffer modified flag.
|
||||
(let ((modiff (buffer-modified-p)))
|
||||
(rmail-set-attribute rmail-unseen-attr-index nil)
|
||||
(unless modiff
|
||||
(set-buffer-modified-p nil)))
|
||||
;; bracket the message in the mail
|
||||
;; buffer and determine the coding system the transfer encoding.
|
||||
(rmail-swap-buffers-maybe)
|
||||
|
Loading…
Reference in New Issue
Block a user