diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-27 23:32:46 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-27 23:32:46 +0000 |
commit | bda2e503d826bb493c755e151907ec2cdaaca4ab (patch) | |
tree | 0fcea3390f80f2df5e613a9036cbaa3c8635562b /lisp | |
parent | 9a80cee32a5da862aa07cb8d44b5eac272f72673 (diff) | |
download | emacs-bda2e503d826bb493c755e151907ec2cdaaca4ab.tar.gz |
(rmail-fontify-message, rmail-unfontify-buffer-function):
Reset the buffer modified state if necessary.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mail/rmail.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 4f7aa070836..099a809bbb7 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2548,7 +2548,8 @@ This has an effect only if a summary buffer exists.") (widen) (remove-hook 'rmail-show-message-hook 'rmail-fontify-message t) (remove-text-properties (point-min) (point-max) '(rmail-fontified nil)) - (font-lock-default-unfontify-buffer)))) + (font-lock-default-unfontify-buffer) + (and (not modified) (buffer-modified-p) (set-buffer-modified-p nil))))) (defun rmail-fontify-message () ;; Fontify the current message if it is not already fontified. @@ -2560,7 +2561,8 @@ This has an effect only if a summary buffer exists.") (save-excursion (save-match-data (add-text-properties (point-min) (point-max) '(rmail-fontified t)) - (font-lock-fontify-region (point-min) (point-max))))))) + (font-lock-fontify-region (point-min) (point-max)) + (and (not modified) (buffer-modified-p) (set-buffer-modified-p nil))))))) ;;;; *** Rmail Specify Inbox Files *** |