home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 12 Nov 1992 05:39:49 EST
- Reply-To: toad@CS.CMU.EDU
- Subject: Re: Killing text
- Date: Thu, 12 Nov 1992 05:39:21 EST
- Message-ID: <1532.721564761@HAIFA.MT.CS.CMU.EDU>
- From: Todd_Kaufmann@HAIFA.MT.CS.CMU.EDU
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 19
-
-
- > I'd like to be able to kill text between two search points. I.e. do an
- > incremental search forward to find the beginning of a region, and then
- > do another incremental search forward to find the end of the region,
- > then kill all the text between those two points. Does anyone out there
- > know how to do this?
-
- C-s <string> ESC C-s C-s ESC C-x C-x C-w
-
- That is,
- (a) do your search,
- (b) terminate the search,
- (c) search for the string again,
- (d) exit the search ( <-- watch carefully, a mark is left at point (b).)
- (d2) use C-x C-x to activate the region (if zmacs-regions, which is default)
- (e) Use C-w to kill.
-
-
- Learn the fundamentals and the rest will follow.
-