home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / lucidem / help / 684 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.1 KB  |  31 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 12 Nov 1992 05:39:49 EST
  2. Reply-To: toad@CS.CMU.EDU
  3. Subject: Re: Killing text
  4. Date: Thu, 12 Nov 1992 05:39:21 EST
  5. Message-ID: <1532.721564761@HAIFA.MT.CS.CMU.EDU>
  6. From: Todd_Kaufmann@HAIFA.MT.CS.CMU.EDU
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 19
  11.  
  12.  
  13. > I'd like to be able to kill text between two search points. I.e. do an
  14. > incremental search forward to find the beginning of a region, and then
  15. > do another incremental search forward to find the end of the region,
  16. > then kill all the text between those two points. Does anyone out there
  17. > know how to do this?
  18.  
  19. C-s <string> ESC C-s C-s ESC C-x C-x C-w
  20.  
  21. That is,
  22.  (a)  do your search,
  23.  (b)  terminate the search,
  24.  (c)  search for the string again,
  25.  (d)  exit the search ( <-- watch carefully, a mark is left at point (b).)
  26.  (d2) use C-x C-x to activate the region (if zmacs-regions, which is default)
  27.  (e)  Use C-w to kill.
  28.  
  29.  
  30. Learn the fundamentals and the rest will follow.
  31.