From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: [rant] Should reverting a buffer really discard undo history? Date: Mon, 30 May 2005 23:58:58 +0200 Message-ID: <429B8CA2.8030901@student.lu.se> References: <87ll5w5vxa.fsf@wigwam.deepwood.net> <874qck8ky7.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117491824 557 80.91.229.2 (30 May 2005 22:23:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 22:23:44 +0000 (UTC) Cc: Daniel Brockman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 00:23:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcseK-00067o-OI for ged-emacs-devel@m.gmane.org; Tue, 31 May 2005 00:22:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcsjI-0001hh-Dg for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 18:27:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcsdE-00086G-8S for emacs-devel@gnu.org; Mon, 30 May 2005 18:21:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dcsd4-00080D-3O for emacs-devel@gnu.org; Mon, 30 May 2005 18:21:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dcsd1-0007hq-Ei for emacs-devel@gnu.org; Mon, 30 May 2005 18:20:59 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcsLA-00026t-Sn for emacs-devel@gnu.org; Mon, 30 May 2005 18:02:33 -0400 Original-Received: from [127.0.0.1] (83.249.206.221) by pne-smtpout1-sn1.fre.skanova.net (7.2.059.6) id 42919401001DABAB; Mon, 30 May 2005 23:59:50 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: <874qck8ky7.fsf-monnier+emacs@gnu.org> X-Antivirus: avast! (VPS 0522-0, 2005-05-30), Outbound message X-Antivirus-Status: Clean 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:37909 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37909 Stefan Monnier wrote: >>My ~/.emacs would have been saved had Emacs kept the buffer contents >>in undo history when reverting the file. I'd like to if there is any >>way to enable this, and (if so) why Emacs does not do it by default. >> >> > >I have locally patched my Emacs to preserve undo info during revert, so >I completely agree it's desirable. When I suggested the change it was >rejected (it's somewhere in the archive if you're interested, tho I can't >remember the thread title and not even when it took place, I'd say about >2 years ago). > >Maybe having it as a (potentially buffer-local) option is a good idea. > >What do people think? > > I vote for making revert undoable! It was a surprise to me that it was not.