Article View: gnu.emacs.help
Article #188824Re: Anyone have a replace-regexp-region ?
From: Mark R. Ludwig
Date: Fri, 14 Jun 1991 18:34
Date: Fri, 14 Jun 1991 18:34
15 lines
1598 bytes
1598 bytes
In article <1991Jun14.000740.643@csis.dit.csiro.au>, peterf@csis (Peter A Fletcher) writes: >Hello there! I was wondering if anyone had an elisp >function to replace regexps in only the currently selected >region ? It would be a really handy thing to have around. The general way to do it is to use "narrowing" within Emacs. The keys C-x n (that's narrow-to-region) limits future editing to the current region. To open it up again, use C-x w (widen) which makes the whole file available again for editing. If you've never used C-x n before, you'll probably have to answer an extra prompt to say you know what you're doing, because it's considered inappropriate for novices.$$ -- INET: mrl@uai.com UUCP: uunet!uaisun4!mrl PSTN: +1 213 822 4422 USPS: 7740 West Manchester Boulevard, Suite 208, Playa del Rey, CA 90293 WANT: Succinct, insightful statement to occupy this space. Inquire within.
Technical Details
Message-ID:
<1991Jun14.183449.23996@uai.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!uaisun4!mrlReferences:
<1991Jun14.000740.643@csis.dit.csiro.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,d85fd313923f4612 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-06-15 03:33:28 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!uaisun4!mrl From: mrl@uai.com (Mark R. Ludwig) Newsgroups: gnu.emacs.help Subject: Re: Anyone have a replace-regexp-region ? Message-ID: <1991Jun14.183449.23996@uai.com> Date: 14 Jun 91 18:34:49 GMT References: <1991Jun14.000740.643@csis.dit.csiro.au> Sender: mrl@uai.com (Mark R. Ludwig) Reply-To: mrl@uai.com (Mark R. Ludwig) Organization: Universal Analytics, Inc., Playa del Rey (LA), CA Lines: 15 In-Reply-To: peterf@csis.dit.csiro.au (Peter A Fletcher)