Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: narrow-to-region

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