From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Reverting but keeping undo Date: Thu, 30 May 2013 20:48:34 +0200 Message-ID: <874ndk8fst.fsf@web.de> References: <87mwrwede7.fsf@wanadoo.es> <8738t6tqie.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369939748 18166 80.91.229.3 (30 May 2013 18:49:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 18:49:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dan Espen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 20:49:08 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ui7uO-0006PE-Dc for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 20:49:08 +0200 Original-Received: from localhost ([::1]:34404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7uO-0003g7-3y for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 14:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7uA-0003fl-0U for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:48:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui7ty-0003Fh-Ku for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:48:53 -0400 Original-Received: from mout.web.de ([212.227.15.14]:53628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7ty-0003FT-Bv for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:48:42 -0400 Original-Received: from drachen.dragon ([89.204.139.124]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MJTdf-1UjUPk0EBf-003ANM; Thu, 30 May 2013 20:48:39 +0200 Mail-Followup-To: Dan Espen , help-gnu-emacs@gnu.org In-Reply-To: (Dan Espen's message of "Wed, 29 May 2013 09:25:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:bxW7SbZ9RQwmn6XbCXy+oMoWbmbzHp5lQq/Il/x5d7D faEgP4seJDGRST/UHBC1JGRkSzuaI8NDy5Ijy9euFaqA6YrM98 q0mFqPNnusfJBEpMoDT752pKdmhf/pr0VhsWxkcsZ+Ezs9fRoc DxiKVQrLENbELNI5RH2SaLv7rriNXPwqTPBT2DifKYASUT//bl rebBI8rh10wAuiI9hYUhty9yDWzqXoYDaPCyl4hG8M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91177 Archived-At: Hi Dan, I'm neither for nor against this change, but try to understand why it's good, once we discuss it here. > Reading through all that, I can only conclude that you can't think of > any reason why retaining undo history is bad. I can think of one: inconsistency. Generally, the undo history doesn't belong to the newly read-in content. It makes sense to throw away an undo history if the buffer content is thrown away as well and replaced by the saved file content (which can be anything). What do I miss? > I can easily think of reasons why it's good. > I control compilation with file variables. > If I change the file variables, a revert makes Emacs aware of the new > values. I certainly don't want to lose my undo history. This is what `normal-mode' is for. No reason to revert the buffer for that. Are there other reasons? Regards, Michael.