bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

highlight-changes-rotate-faces sets buffer modified flag


From: Reindert-Jan Ekker
Subject: highlight-changes-rotate-faces sets buffer modified flag
Date: Mon, 7 May 2007 17:30:31 +0200 (CEST)

L.S.

Running the function highlight-changes-rotate-faces sets the buffer's modified flag. It seems to me that this should not happen, since only some faces are changed. As a workaround, I use the following advice:

;; advice for highlight-changes-rotate-faces
;; so that it does not change the modified flag for the buffer
(defadvice highlight-changes-rotate-faces (around around-rotate-faces)
  (let ((was-modified (buffer-modified-p)))
        ad-do-it
        (unless was-modified
          (set-buffer-modified-p nil))))
(ad-activate 'highlight-changes-rotate-faces)

The version string of my emacs:
"GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO"

With kind regards,

Reindert-Jan Ekker




reply via email to

[Prev in Thread] Current Thread [Next in Thread]