Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: narrow-to-region
- X-seq: zsh-workers 17415
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: narrow-to-region
- Date: Thu, 4 Jul 2002 15:36:54 +0000
- In-reply-to: <14580.1025791205@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <14580.1025791205@xxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author