From: martin rudalics <rudalics@gmx.at>
To: Reindert-Jan Ekker <R.Ekker@ai.rug.nl>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: highlight-changes-rotate-faces sets buffer modified flag
Date: Wed, 09 May 2007 14:24:40 +0200 [thread overview]
Message-ID: <4641BD88.7020207@gmx.at> (raw)
In-Reply-To: <Pine.LNX.4.64.0705091119390.1549@tcw2.ai.rug.nl>
> Hi,
>
> Turning off highlight-changes-mode sets the buffer-modified state as well.
This could be handled as with `highlight-changes-rotate-faces'.
Unfortunately, switching `highlight-changes-mode' off will leave
`buffer-undo-list' cluttered with all sorts of remnants that make sense
iff the mode is on. You could try as follows: Switch the mode on, do
some changes, rotate colors, switch it off, undo changes. Changed text
may get highlighted although the mode is off.
> By the way, I do not have a lot of experience with emacs lisp. Regarding
> buffer-undo-list: would it be correct to just remove the front element
> of the list in the advice I wrote?
Better not record the change in the first place by temporarily binding
`buffer-undo-list' to t during the buffer change.
BTW, am I correct that you run `highlight-changes-rotate-faces'
interactively and not in `write-file-functions'? In the latter case
setting the buffer-modified flag should get shadowed by the saving
primitive.
next prev parent reply other threads:[~2007-05-09 12:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 6:10 highlight-changes-rotate-faces sets buffer modified flag martin rudalics
2007-05-09 9:29 ` Reindert-Jan Ekker
2007-05-09 12:24 ` martin rudalics [this message]
2007-05-09 13:41 ` Reindert-Jan Ekker
2007-05-09 16:53 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2007-05-07 15:30 Reindert-Jan Ekker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4641BD88.7020207@gmx.at \
--to=rudalics@gmx.at \
--cc=R.Ekker@ai.rug.nl \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.