From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8447: Undoing M-x revert-buffer Date: Fri, 08 Apr 2011 22:49:54 -0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302314852 16401 80.91.229.12 (9 Apr 2011 02:07:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2011 02:07:32 +0000 (UTC) Cc: 8447@debbugs.gnu.org To: Hrvoje =?UTF-8?Q?Nik=C5=A1i=C4=87?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 04:07:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8NaA-0000MA-4H for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 04:07:26 +0200 Original-Received: from localhost ([127.0.0.1]:40627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Na9-0006lL-HU for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Apr 2011 22:07:25 -0400 Original-Received: from [140.186.70.92] (port=55938 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Na3-0006k7-Gm for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2011 22:07:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Na2-0002BG-NF for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2011 22:07:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Na2-0002BC-KH for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2011 22:07:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q8NKH-0002U8-Pu; Fri, 08 Apr 2011 21:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Apr 2011 01:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8447-submit@debbugs.gnu.org id=B8447.13023138059490 (code B ref 8447); Sat, 09 Apr 2011 01:51:01 +0000 Original-Received: (at 8447) by debbugs.gnu.org; 9 Apr 2011 01:50:05 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8NJN-0002T1-1I for submit@debbugs.gnu.org; Fri, 08 Apr 2011 21:50:05 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8NJL-0002SV-FF for 8447@debbugs.gnu.org; Fri, 08 Apr 2011 21:50:03 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:52816 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Q8NJF-0007IR-S1; Fri, 08 Apr 2011 21:49:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D3985660B0; Fri, 8 Apr 2011 21:49:54 -0400 (EDT) In-Reply-To: ("Hrvoje =?UTF-8?Q?Nik=C5=A1i=C4=87?="'s message of "Fri, 8 Apr 2011 17:54:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 08 Apr 2011 21:51:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45705 Archived-At: > It would be nice to be able to undo a revert-buffer operation. So do I. I've been using a local patch to do that, actually. IIRC back when I wrote it, RMS opposed the change. I think my change only affected the "revert while keeping the same major-mode" such as the revert performed silently by auto-revert-mode and VC operations. It has bit-rotted somewhat, but I remember that the current code works hard at forgetting the undo data (it does it once at the Lisp level and another time inside insert-file-contents). Stefan