From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [R.Ekker@ai.rug.nl: highlight-changes-rotate-faces sets buffer modified flag] Date: Tue, 15 May 2007 05:46:21 -0400 Message-ID: References: <46416DBF.4020506@gmx.at> <46424454.10906@gmx.at> <46443356.7070103@gmx.at> <464825E3.6040609@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1179222577 7617 80.91.229.12 (15 May 2007 09:49:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 May 2007 09:49:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 15 11:49:36 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hntey-0006wc-8N for ged-emacs-devel@m.gmane.org; Tue, 15 May 2007 11:49:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hntmp-000124-2H for ged-emacs-devel@m.gmane.org; Tue, 15 May 2007 05:57:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hntmi-00010c-CD for emacs-devel@gnu.org; Tue, 15 May 2007 05:57:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hntmh-00010G-KU for emacs-devel@gnu.org; Tue, 15 May 2007 05:57:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hntmh-00010B-Bn for emacs-devel@gnu.org; Tue, 15 May 2007 05:57:35 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hntep-0002RN-Hv for emacs-devel@gnu.org; Tue, 15 May 2007 05:49:27 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hntbp-0008MQ-I7; Tue, 15 May 2007 05:46:21 -0400 In-reply-to: <464825E3.6040609@gmx.at> (message from martin rudalics on Mon, 14 May 2007 11:03:31 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:71098 Archived-At: Maybe we could use a macro like (defmacro with-buffer-undo-unmodified (&rest body) "Eval BODY, preserving the current buffer's modified state. In addition create entries to `buffer-undo-list' in order to not alter the buffer's modified state during undos and redos." First let's see what is best in this specific case. Afterward we could see if any part of it is worth generalizing.