[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fill-paragrapch set the buffer to changed when there is none
From: |
Paul Pogonyshev |
Subject: |
Re: fill-paragrapch set the buffer to changed when there is none |
Date: |
Thu, 6 Jul 2006 01:59:10 +0300 |
User-agent: |
KMail/1.7.2 |
Lennart Borgman wrote:
> Richard Stallman wrote:
> > If you do fill-paragraph on a paragraph that is already filled in an
> > Elisp buffer there is an undo entry added and the buffer is set to
> > modified. Is that correct?
> >
> > It would be better to avoid modifying the buffer. This has not been
> > implemented because it isn't trivial to do.
> >
> Would it be possible to just set the modified flag correctly? Can the
> undo list be truncated?
Yes (at least the first part), but it is not easy to detect when a buffer
is not modified. If you can tell you are not modifying the buffer, you
can as well not call `insert' and friends at all.
Paul