Article View: gnu.emacs.bug
Article #1574Re: replace-regexp
From: Randal L. Schwartz Stonehenge
Date: Tue, 11 Apr 1989 16:00
Date: Tue, 11 Apr 1989 16:00
20 lines
1462 bytes
1462 bytes
In article <8904102352.AA22601@inria.inria.fr>, loic%axis_d writes:
| In GNU Emacs 18.52.10 of Sun Feb 19 1989 on axis_d (usg-unix-v)
|
| (replace-regexp "^." "" ())
|
| It empties my buffer !
|
| I guess that it removes the character. Then the point is still
| at the beginning of the line. So it removes the next one. And
| so on.
I recently battled this in 18.53 as well. I was replacing
"^ " with "", and ended up deleting all initial spaces.
C'mon y'all... vi gets it right... :-)
--
/=====Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095========\
{ on contract to BiiN (for now :-) Hillsboro, Oregon, USA. }
{<@intel-iwarp.arpa:merlyn@intelob.intel.com> ...!uunet!tektronix!biin!merlyn }
\=====Cute quote: "Welcome to Oregon... home of the California Raisins!"======/
Technical Details
Message-ID:
<4287@omepd.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!xanth!ames!vsi1!wyse!td2cad!mipos3!omepd!merlynReferences:
<8904102352.AA22601@inria.inria.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!xanth!ames!vsi1!wyse!td2cad!mipos3!omepd!merlyn From: merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) Newsgroups: gnu.emacs.bug Subject: Re: replace-regexp Summary: another data point Message-ID: <4287@omepd.UUCP> Date: 11 Apr 89 16:00:45 GMT References: <8904102352.AA22601@inria.inria.fr> Sender: news@omepd.UUCP Reply-To: merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) Distribution: gnu Organization: Stonehenge; netaccess via BiiN, Hillsboro, Oregon, USA Lines: 20 In-reply-to: loic%axis_d@axis.axis.fr