home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / emacs / 3789 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.5 KB

  1. Path: sparky!uunet!mcrware!mwca!bill
  2. From: bill@mwca.UUCP (Bill Sheppard)
  3. Newsgroups: comp.emacs
  4. Subject: Re: Replacing with Nothing
  5. Message-ID: <2008@mwca.UUCP>
  6. Date: 14 Dec 92 18:46:23 GMT
  7. References: <1992Dec11.135854.3009@nysernet.org>
  8. Organization: Microware Systems Corp., Santa Clara, Ca.
  9. Lines: 24
  10.  
  11. In <1992Dec11.135854.3009@nysernet.org> astein@nysernet.org (Alan Stein) writes:
  12.  
  13. >If I want to just delete every instance of a character string and
  14. >replace it with absolutely nothing, I just press the meta key when I'm
  15. >prompted for the replacement string.  This works fine if that's the
  16. >first time I've done a replacement.  But that doesn't work if I've
  17. >done a replacement before during that emacs session, in which case
  18. >just pressing the meta key acts to accept the previous replacement.
  19. >How can I do such a search and replace in that case?
  20.  
  21. In MicroEmacs this was fixed in version 3.11 - by typing ^K (or whatever your
  22. kill-to-end-of-line character is) it will clear the replace string.  On
  23. versions prior to V3.11 you had to save your file, exit MicroEmacs, go back
  24. in, and do the replace (exiting MicroEmacs naturally clears the default
  25. replace string).
  26.  
  27. I can't help with GNU emacs...
  28.  
  29. Bill
  30. -- 
  31.  ##############################################################################
  32.  # Bill Sheppard  --  Western Regional Sales Manager  --  bills@microware.com #
  33.  # Microware Systems Corporation -- OS-9 / OS-9000 / CD-RTOS -- (408)980-0201 #
  34.  ############## Opinions expressed are my own and usually wrong ###############
  35.