From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4793 invoked from network); 12 Jan 1997 00:56:26 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 12 Jan 1997 00:56:26 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id UAA06520; Sat, 11 Jan 1997 20:04:40 -0500 (EST) Resent-Date: Sat, 11 Jan 1997 20:04:40 -0500 (EST) From: Zoltan Hidvegi Message-Id: <199701112357.AAA03275@hzoli.ppp.cs.elte.hu> Subject: Re: undo and history To: zefram@dcs.warwick.ac.uk (Zefram) Date: Sun, 12 Jan 1997 00:57:57 +0100 (MET) Cc: zsh-workers@math.gatech.edu In-Reply-To: <28477.199701101459@stone.dcs.warwick.ac.uk> from Zefram at "Jan 10, 97 02:59:50 pm" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"OEyzC3.0.mb1.dY3so"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2784 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zefram wrote: > This patch further modifies the ZLE undo system, after patch 2746. > It adds some collusion between the history event selection code and > the undo system, so that modifications of arbitrary history lines will > work correctly. The code to switch to a different history event is also > moved into a single function, reducing code duplication. I think it would not be difficult to implement an emacs-like undo mechanism, where undo itself can be undone. I like the emacs behaviour and I often miss it from zsh. We can use a different zle command name for that, emacs-undo for example. Zoltan