From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8660 invoked from network); 4 Jul 2002 15:37:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Jul 2002 15:37:32 -0000 Received: (qmail 1557 invoked by alias); 4 Jul 2002 15:37:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17415 Received: (qmail 1543 invoked from network); 4 Jul 2002 15:37:25 -0000 From: "Bart Schaefer" Message-Id: <1020704153655.ZM21316@candle.brasslantern.com> Date: Thu, 4 Jul 2002 15:36:54 +0000 In-Reply-To: <14580.1025791205@csr.com> Comments: In reply to Peter Stephenson "Re: PATCH: narrow-to-region" (Jul 4, 3:00pm) References: <14580.1025791205@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: narrow-to-region MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 4, 3:00pm, Peter Stephenson wrote: } } Except this isn't quite what you typically want --- you want to be able } to have `narrow-to-region' at the start, then `widen' at the end, and do } your own recursive editing in the middle. So this really needs to be } split and given a way to save its state. On Jul 4, 4:12pm, Peter Stephenson wrote: } } Not that I don't have anything better to do, but... } } This adds -S statepm and -R statepm, so you can save and restore state, } and shows a simple example of this. Maybe I'm missing something, but was all that really necessary? Seems like all that's needed is a test for whether a recursive edit is in progress, and then `widen' can be function that does an accept-line when recursively editing and feeps (or does nothing) otherwise. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net