From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [rant] Should reverting a buffer really discard undo history? Date: Wed, 01 Jun 2005 13:25:33 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117647037 28068 80.91.229.2 (1 Jun 2005 17:30:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 17:30:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 19:30:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdX0n-0004B7-DY for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:28:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdX67-00048K-SK for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 13:33:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdX4X-0003KR-OO for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdX4V-0003Iw-Ib for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdX4V-0003Hx-Cx for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:03 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdX1B-0005eP-Pt for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:28:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DdWyD-0001Sv-Fz; Wed, 01 Jun 2005 13:25:33 -0400 Original-To: "Drew Adams" In-reply-to: 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:38001 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38001 I'm not real familiar with the mechanics of the undo list, but couldn't the previous file contents be stored only on disk, as a temporary file, and the value in the undo list be just a pointer to that file instead of the file contents? It would be conceivable to store old undo-list contents in files. 15 years ago I wanted to implement that in Emacs. Nowadays it seems less important, because memory is big enough to hold more undo list data than in the past. It's only for something like this that one would think of wanting to do that.