emacs-devel
[Top][All Lists]
Advanced

[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: Lennart Borgman
Subject: Re: fill-paragrapch set the buffer to changed when there is none
Date: Thu, 06 Jul 2006 00:54:47 +0200
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Paul Pogonyshev wrote:
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
Is it not enough just to compare the contents of the filled region before and after filling?




reply via email to

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