[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: highlight-changes-rotate-faces sets buffer modified flag
From: |
Richard Stallman |
Subject: |
address@hidden: highlight-changes-rotate-faces sets buffer modified flag] |
Date: |
Tue, 08 May 2007 14:09:02 -0400 |
I don't know how to use this feature, but looking at the code suggests
that this bug still exists. Can anyone verify that?
It should be pretty easy to prevent this code from changing the
modified flag (and perhaps bind buffer-undo-list to t). I am not sure
where the change should be made, though. Would someone familiar with
this package please take a look and DTRT?
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
Date: Mon, 7 May 2007 17:30:31 +0200 (CEST)
From: Reindert-Jan Ekker <address@hidden>
To: address@hidden
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Subject: highlight-changes-rotate-faces sets buffer modified flag
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
_______________________________________________
bug-gnu-emacs mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
Re: address@hidden: highlight-changes-rotate-faces sets buffer modified flag], martin rudalics, 2007/05/09