Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ucla-cs!zen!ucbvax!ICST-CMR.ARPA!rbj From: rbj@ICST-CMR.ARPA (Root Boy Jim) Newsgroups: comp.emacs Subject: Re: interactive recursive narrowing Message-ID: <8707061848.AA01301@icst-cmr.arpa.ARPA> Date: Mon, 6-Jul-87 14:48:04 EDT Article-I.D.: icst-cmr.8707061848.AA01301 Posted: Mon Jul 6 14:48:04 1987 Date-Received: Wed, 8-Jul-87 01:15:15 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 28 ? ? The standard GNU Emacs "narrow-to-region" and "widen" allow ? for only one-or-none narrowing - i.e. you're narrowed or not. ? ? Often I would have found it helpful to have recursive ? narrowing. Is there any way to do this? M-x describe-functionsave-restriction save-restriction: Execute the body, undoing at the end any changes to current buffer's restrictions. Changes to restrictions are made by narrow-to-region or by widen. Thus, the restrictions are the same after this function as they were before it. The value returned is that returned by the last form in the body. This function can be confused if, within the body, you widen and then make changes outside the area within the saved restrictions. Note: if you are using both save-excursion and save-restriction, use save-excursion outermost. ? Niall ? (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 If I am elected no one will ever have to do their laundry again!