From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Yavner Newsgroups: gmane.emacs.devel Subject: [rant] Should reverting a buffer really discard undo history? Date: Mon, 30 May 2005 20:28:25 -0400 Message-ID: <200505302028.25944.jyavner@member.fsf.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117500087 18027 80.91.229.2 (31 May 2005 00:41:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 May 2005 00:41:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 02:41:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dcuoa-00014w-Hm for ged-emacs-devel@m.gmane.org; Tue, 31 May 2005 02:41:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcutZ-0008Dh-Ez for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 20:46:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dcus2-0007lo-1n for emacs-devel@gnu.org; Mon, 30 May 2005 20:44:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dcuru-0007jI-UA for emacs-devel@gnu.org; Mon, 30 May 2005 20:44:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dcurt-0007ew-RU for emacs-devel@gnu.org; Mon, 30 May 2005 20:44:30 -0400 Original-Received: from [204.127.202.59] (helo=sccrmhc14.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dcue3-00029l-EU for emacs-devel@gnu.org; Mon, 30 May 2005 20:30:11 -0400 Original-Received: from [192.168.0.254] (pcp109868pcs.wchryh01.nj.comcast.net[68.45.81.14]) by comcast.net (sccrmhc14) with ESMTP id <2005053100282801400do8dae>; Tue, 31 May 2005 00:28:28 +0000 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.6.2 In-Reply-To: Content-Disposition: inline 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:37913 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37913 > the first thing I did following this incident was to set 'version-control' > to t, and curse myself for not doing so earlier. This sounds like a work-around. Why isn't "revert" an undoable operation? Maybe it would cost too much RAM when reverting a 64 MB file, but for typical files on today's computers we can afford to treat the entire buffer text as having been replaced. > you cannot use Customize to, e.g., bind keys. Nor can you use it to define your own functions that will be bound to keys. Nor can it deal with conditional code in your .emacs dealing with platforms other than the one you're using at the moment. --JYavner