From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: fill-paragrapch set the buffer to changed when there is none
Date: Thu, 06 Jul 2006 00:54:47 +0200 [thread overview]
Message-ID: <44AC4337.1060505@student.lu.se> (raw)
In-Reply-To: <200607060159.11127.pogonyshev@gmx.net>
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?
next prev parent reply other threads:[~2006-07-05 22:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 22:58 fill-paragrapch set the buffer to changed when there is none Lennart Borgman
2006-07-05 11:25 ` Mathias Dahl
2006-07-05 17:01 ` Richard Stallman
2006-07-05 22:47 ` Lennart Borgman
2006-07-05 22:59 ` Paul Pogonyshev
2006-07-05 22:54 ` Lennart Borgman [this message]
2006-07-07 4:14 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44AC4337.1060505@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=emacs-devel@gnu.org \
--cc=rms@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).