home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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 ###############
-