home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / emacs / 3876 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.8 KB

  1. Xref: sparky comp.emacs:3876 gnu.emacs.help:5190 gnu.epoch.misc:1223
  2. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!hri.com!noc.near.net!lynx!random.ccs.northeastern.edu!news
  3. From: ratinox@meceng.coe.northeastern.edu (Rent-a-Lemming)
  4. Newsgroups: comp.emacs,gnu.emacs.help,gnu.epoch.misc
  5. Subject: Re: strange replace-regexp behavior
  6. Message-ID: <RATINOX.92Dec28123104@splinter.coe.northeastern.edu>
  7. Date: 28 Dec 92 17:32:07 GMT
  8. References: <1992Dec28.133923.27974@nsisrv.gsfc.nasa.gov>
  9.     <RATINOX.92Dec28122732@splinter.coe.northeastern.edu>
  10. Sender: news@random.ccs.northeastern.edu
  11. Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
  12. Lines: 16
  13. In-Reply-To: Lemming Productions Present...'s message of Mon, 28 Dec 1992 17: 28:34 GMT
  14. Nntp-Posting-Host: splinter.coe.northeastern.edu
  15. X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
  16. X-Signature-Virus-Protection: Version 1.51
  17. X-Get-A-Clue: Have two, they're small.
  18.  
  19. >>>>> On Mon, 28 Dec 1992 17:28:34 GMT, Lemming Productions Present...
  20. >>>>> <ratinox@meceng.coe.northeastern.edu> said:
  21.  
  22. Ratinox> You may want to use querey-replace-regexp instead. Or do two
  23. Ratinox> replace-regexp commands, the first change "^>" into something
  24. Ratinox> else, like "><", then do a second replace-regexp on the new
  25. Ratinox> string.
  26.  
  27. I just realized a simpler way to do this. Define a keyboard macro that does
  28. a "(re-search-forward "^>") C-d C-n". Then use a big prefix count before
  29. C-x C-e to execute it.
  30.  
  31. --Rat                               PGP Public Key Block available upon request
  32. ||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
  33. Northeastern's Stainless Steel Rat          ratinox@meceng.coe.northeastern.edu
  34. Carpe Joltem! (Seize the Caffeine)                                         --Me
  35.