From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [rant] Should reverting a buffer really discard undo history? Date: Mon, 30 May 2005 17:28:54 -0400 Message-ID: <874qck8ky7.fsf-monnier+emacs@gnu.org> References: <87ll5w5vxa.fsf@wigwam.deepwood.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117489694 27129 80.91.229.2 (30 May 2005 21:48:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 21:48:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 23:48:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dcs5r-0002ZO-5K for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 23:46:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcsAo-0000P3-LG for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 17:51:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dcs7a-0007ur-22 for emacs-devel@gnu.org; Mon, 30 May 2005 17:48:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dcs7X-0007tF-51 for emacs-devel@gnu.org; Mon, 30 May 2005 17:48:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dcs7W-0007gM-8E for emacs-devel@gnu.org; Mon, 30 May 2005 17:48:26 -0400 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcrqF-0000LK-AI for emacs-devel@gnu.org; Mon, 30 May 2005 17:30:35 -0400 Original-Received: from alfajor ([67.71.25.47]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050530212854.HTEE1799.tomts40-srv.bellnexxia.net@alfajor>; Mon, 30 May 2005 17:28:54 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 21028D7403; Mon, 30 May 2005 17:28:54 -0400 (EDT) Original-To: Daniel Brockman In-Reply-To: <87ll5w5vxa.fsf@wigwam.deepwood.net> (Daniel Brockman's message of "Mon, 30 May 2005 21:57:21 +0200") 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:37907 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37907 > 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? Stefan