# HG changeset patch # User Richard M. Stallman # Date 827969566 0 # Node ID 467e9d219590f9f1ff6afd9a5651bcf4937e5cb1 # Parent 9cce31ba2d617a78a5477bda96fa895e8ba49605 (rmail-fontify-message, rmail-unfontify-buffer-function): Reset the buffer modified state if necessary. diff -r 9cce31ba2d61 -r 467e9d219590 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Wed Mar 27 22:38:19 1996 +0000 +++ b/lisp/mail/rmail.el Wed Mar 27 23:32:46 1996 +0000 @@ -2548,7 +2548,8 @@ (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 @@ (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 ***