From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: New undo element (fun . args) Date: Sun, 30 Jan 2005 19:19:43 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1107132783 23343 80.91.229.6 (31 Jan 2005 00:53:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 00:53:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 31 01:52:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CvPoH-0008C2-00 for ; Mon, 31 Jan 2005 01:52:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvQ0t-0001Iw-Bn for ged-emacs-devel@m.gmane.org; Sun, 30 Jan 2005 20:05:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CvPv5-0007FJ-2Y for emacs-devel@gnu.org; Sun, 30 Jan 2005 19:59:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CvPuv-0007CG-Gb for emacs-devel@gnu.org; Sun, 30 Jan 2005 19:59:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvPuv-00073U-Bv for emacs-devel@gnu.org; Sun, 30 Jan 2005 19:59:49 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CvPKZ-0002EO-Vn for emacs-devel@gnu.org; Sun, 30 Jan 2005 19:22:16 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CvPI7-0007WO-NX; Sun, 30 Jan 2005 19:19:43 -0500 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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: main.gmane.org gmane.emacs.devel:32650 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32650 1) it does not work with the "undo-in-region" funtionality. Yes, that is true. However, to make this work required more than just adding a range to the undo element. It also has to say the size change it makes within that region. undo-elt-in-region and undo-delta have to handle it. And the code in undo-make-selective-list has to be updated to modify these elements for other elements that get skipped. 2) AFAICS, it effectively blocks any future extensions to the undo list format. Not really, but there's no need to argue about it. I think this format is best: (apply DELTA BEG END FUN . ARGS) It should be documented that BEG and END should be the