🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #3211

Re: Replacing with Nothing

#3211
From: Bill Sheppard
Date: Mon, 14 Dec 1992 18:46
24 lines
1568 bytes
In <1992Dec11.135854.3009@nysernet.org> astein@nysernet.org (Alan Stein) writes:

>If I want to just delete every instance of a character string and
>replace it with absolutely nothing, I just press the meta key when I'm
>prompted for the replacement string.  This works fine if that's the
>first time I've done a replacement.  But that doesn't work if I've
>done a replacement before during that emacs session, in which case
>just pressing the meta key acts to accept the previous replacement.
>How can I do such a search and replace in that case?

In MicroEmacs this was fixed in version 3.11 - by typing ^K (or whatever your
kill-to-end-of-line character is) it will clear the replace string.  On
versions prior to V3.11 you had to save your file, exit MicroEmacs, go back
in, and do the replace (exiting MicroEmacs naturally clears the default
replace string).

I can't help with GNU emacs...

Bill
-- 
 ##############################################################################
 # Bill Sheppard  --  Western Regional Sales Manager  --  bills@microware.com #
 # Microware Systems Corporation -- OS-9 / OS-9000 / CD-RTOS -- (408)980-0201 #
 ############## Opinions expressed are my own and usually wrong ###############
Technical Details
Message-ID: <2008@mwca.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcrware!mwca!bill
References: <1992Dec11.135854.3009@nysernet.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcrware!mwca!bill
From: bill@mwca.UUCP (Bill Sheppard)
Newsgroups: comp.emacs
Subject: Re: Replacing with Nothing
Message-ID: <2008@mwca.UUCP>
Date: 14 Dec 92 18:46:23 GMT
References: <1992Dec11.135854.3009@nysernet.org>
Organization: Microware Systems Corp., Santa Clara, Ca.
Lines: 24