Article View: gnu.emacs.help
Article #188831Re: Anyone have a replace-regexp-region ?
From: Greg Holley
Date: Fri, 14 Jun 1991 21:01
Date: Fri, 14 Jun 1991 21:01
20 lines
1590 bytes
1590 bytes
In article <1991Jun14.000740.643@csis.dit.csiro.au> peterf@csis.dit.csiro.au (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. I have a routine called "electric-replace" which folds all the standard replace commands (string & regexp, query, ...) into one command based on the C-R key. It also allows limiting the replace to the region, or applying it to the entire buffer. I posted the source to gnu.emacs.sources, so it is probably archived somewhere. If you can't find it, let me know and I'll e-mail you a copy. -- Greg Holley sun!sono!holley holley@sono.uucp "My tale is so strange that, were it written with needles on the interior corner of an eye, yet would it prove a lesson to the circumspect."
Technical Details
Message-ID:
<HOLLEY.91Jun14140110@fog.sono.uucp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!apple!veritas!amdcad!sono!fog!holleyReferences:
<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 07:30:42 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!apple!veritas!amdcad!sono!fog!holley From: holley@sono.uucp (Greg Holley) Newsgroups: gnu.emacs.help Subject: Re: Anyone have a replace-regexp-region ? Message-ID: <HOLLEY.91Jun14140110@fog.sono.uucp> Date: 14 Jun 91 21:01:10 GMT References: <1991Jun14.000740.643@csis.dit.csiro.au> Sender: holley@sono.uucp (Greg Holley) Organization: Acuson; Mountain View, California Lines: 20 In-Reply-To: peterf@csis.dit.csiro.au's message of 14 Jun 91 00:07:40 GMT