From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: [rant] Should reverting a buffer really discard undo history? Date: Wed, 1 Jun 2005 16:19:46 -0700 Message-ID: <200506012319.j51NJk3i012173@amrm2.ics.uci.edu> 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=us-ascii X-Trace: sea.gmane.org 1117668075 30740 80.91.229.2 (1 Jun 2005 23:21:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 23:21:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 02 01:21:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdcVj-0007jw-Lc for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2005 01:20:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ddcb7-0004mg-3J for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:26:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdcZw-0004CV-4g for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:24:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdcZr-00047c-S0 for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:24:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdcZq-00045U-Lu for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:24:46 -0400 Original-Received: from [128.195.11.178] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DdcX9-0006Lc-50 for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:21:59 -0400 Original-Received: from amrm2.ics.uci.edu (amrm2.ics.uci.edu [127.0.0.1]) by localhost.localdomain (8.13.1/8.13.1) with ESMTP id j51NJkRO012174; Wed, 1 Jun 2005 16:19:47 -0700 Original-Received: (from dann@localhost) by amrm2.ics.uci.edu (8.13.1/8.13.1/Submit) id j51NJk3i012173; Wed, 1 Jun 2005 16:19:46 -0700 Original-To: Stefan Monnier In-Reply-To: <874qck8ky7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 30 May 2005 17:28:54 -0400") Original-Lines: 25 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:38022 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38022 Stefan Monnier writes: > > 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? It would be nice. Maybe other users have a different experience, but for me 99% of the time I would like undo info after a revert is when revert was invoked by VC/pcl-cvs after a commit. So from this users point of view if VC/pcl-cvs were not to revert the buffer, saving undo after revert would not be missed much. --dan