From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Changing of line format and undo Date: Sun, 02 Jul 2006 23:19:05 +0200 Message-ID: References: <44987375.2010000@student.lu.se> <449961F6.6020001@student.lu.se> <85mzc6y204.fsf@lola.goethe.zz> <44996AE1.7020907@student.lu.se> <858xnqxyg9.fsf@lola.goethe.zz> <4499781F.7090802@student.lu.se> <87k66wvx4u.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151875288 22576 80.91.229.2 (2 Jul 2006 21:21:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2006 21:21:28 +0000 (UTC) Cc: Lennart Borgman , Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 23:21:26 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 1Fx9NU-00080q-7m for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2006 23:21:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fx9NT-0007cR-L9 for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2006 17:21:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fx9NI-0007cC-C9 for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:21:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fx9NH-0007bs-G4 for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:21:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fx9NH-0007bp-AZ for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:21:03 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fx9aY-0002DA-C5; Sun, 02 Jul 2006 17:34:46 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 8E031A50032; Sun, 2 Jul 2006 23:20:56 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87k66wvx4u.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 02 Jul 2006 11:39:05 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56385 Archived-At: Stefan Monnier writes: >> Thanks, you are right ;-) Now I see what Eli meant. I still believe that >> everything that can result in changing an external file should go into the >> undo history but this is really a corner case of course. > > You can change C-x RET f to do what you want by having it add (manually in > elisp) an `apply' entry to buufer-undo-list. > > E.g. I've changed my set-buffer-multibyte to do that (waiting for post-22 > to commit it). I think this is an _excellent_ idea (and IMO the current behaviour is faulty). -- Kim F. Storm http://www.cua.dk