From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: fill-paragrapch set the buffer to changed when there is none Date: Thu, 6 Jul 2006 01:59:10 +0300 Message-ID: <200607060159.11127.pogonyshev@gmx.net> References: <44AAF28C.1020609@student.lu.se> <44AC4197.9050006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152140126 10334 80.91.229.2 (5 Jul 2006 22:55:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 22:55:26 +0000 (UTC) Cc: Lennart Borgman , rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 00:55:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyGH5-00051d-9a for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 00:55:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyGH4-00051F-UH for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 18:55:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyGEf-00046q-Ku for emacs-devel@gnu.org; Wed, 05 Jul 2006 18:52:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyGEc-00044l-7R for emacs-devel@gnu.org; Wed, 05 Jul 2006 18:52:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyGEc-00044c-1H for emacs-devel@gnu.org; Wed, 05 Jul 2006 18:52:42 -0400 Original-Received: from [213.165.64.21] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FyGEf-0002mH-5Z for emacs-devel@gnu.org; Wed, 05 Jul 2006 18:52:45 -0400 Original-Received: (qmail invoked by alias); 05 Jul 2006 22:52:39 -0000 Original-Received: from dialup.194.158.192.182.belpak.by (EHLO dialup.194.158.192.182.belpak.by) [194.158.192.182] by mail.gmx.net (mp022) with SMTP; 06 Jul 2006 00:52:39 +0200 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: <44AC4197.9050006@student.lu.se> Content-Disposition: inline X-Y-GMX-Trusted: 0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56608 Archived-At: 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