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:41:58 +0200 Message-ID: <878v2w8g3t.fsf@web.de> References: <87mwrwede7.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369939348 13849 80.91.229.3 (30 May 2013 18:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 18:42:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 20:42:28 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 1Ui7nv-00028y-Js for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 20:42:27 +0200 Original-Received: from localhost ([::1]:33245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7nv-0006Z5-6p for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 14:42:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7ng-0006Yn-47 for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:42:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui7na-0008T7-W6 for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:42:12 -0400 Original-Received: from mout.web.de ([212.227.17.12]:62038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui7na-0008Ra-O8 for help-gnu-emacs@gnu.org; Thu, 30 May 2013 14:42:06 -0400 Original-Received: from drachen.dragon ([89.204.139.124]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MfYn9-1V5Xf62NbP-00P4tb; Thu, 30 May 2013 20:42:04 +0200 Mail-Followup-To: Stefan Monnier , help-gnu-emacs@gnu.org In-Reply-To: (Stefan Monnier's message of "Tue, 28 May 2013 21:52:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:/YwhVIxC52FOxcHN7JVWoWGNvEKLTYfUeyE5Y32aI3U xT4Fwp3nSMCoNBtJ/r9QNm7+R/rH+rvPm0jSVMqFHrmEIT9PT6 YRzIgecdWPSKRLL6O9hcJIG9CY0s6+ANNPRLg9s5OcFeu4MqIz lyXG9RgLwWHhBrRIlioesGadpR5z3dWqkmbWa4WVZXpY/Ame0r 71pGlUTZtIO63Ik0uwZL7+w2YMm3EDAgSqJytKJ/jU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.12 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:91176 Archived-At: Stefan Monnier writes: > > `revert-buffer' discards undo history. > > FWIW, I just installed a patch in Emacs's trunk which makes that > revert-buffer doesn't discard undo history any more. I wonder how that works. Generally, the undo history belongs to a buffer content different from the content after reverting. Does your patch prevent surprises like "undoing" changes that were never made to the newly read-in buffer content? Reading all of this thread, there were very few arguments about the subject itself. Which advantage does this change offer? Just curious. Regards, Michael.