home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!haven.umd.edu!news.umbc.edu!venus.cs.umbc.edu!steibel
- From: steibel@venus.cs.umbc.edu (David M. Steibel)
- Newsgroups: comp.emacs
- Subject: Re: repetetive search with function keys
- Message-ID: <1992Nov21.183024.19520@umbc3.umbc.edu>
- Date: 21 Nov 92 18:30:24 GMT
- References: <1992Nov20.235319.8477@cs.odu.edu>
- Sender: newspost@umbc3.umbc.edu (News posting account)
- Distribution: usa
- Organization: University of Maryland Baltimore Campus
- Lines: 35
-
- sastr_a@ptah.cs.odu.edu (RAVI AYYALASOMAYAJULA) writes:
-
- > My question is how do I make my fuction key search repetitively search
- > for the search the same string?
-
- You would want to bind it to isearch-forward, and isearch-backwards.
- Note that isearch-forward is sometimes already bound to control-s,
- except when control-s is used for flow control purposes. Sometimes
- isearch-forward is bound to control-backslash also. Try both and see,
- although if trying control-s freezes your screen, you will have to
- type control-q to resume. isearch-backwards is almost always bound to
- control-r.
-
- isearch works somewhat uniquely. After typing the first character, it
- will find the first string that matches the first character. After
- typing the second character, it will find the first string matching
- the second character and so on until it can no longer find a match.
- Typing a backspace will pull the cursor back to last match, and typing
- backspace until the end of the buffer will leave you where you
- started. control-d ends the process, as does moving around with the
- cursor keys. Also, if you have finished your search string, and wish
- to find the second occurance of your search string, press the isearch
- key again. If you wish to use the same search string after exiting
- the isearch search editor line, press isearch twice and it will resume
- with the last string you typed in.
-
- That all is assuming you use the natural bindings for isearch. I
- never tryed binding isearch to a function key. For more info,
- read the manual or use online help.
-
- --
- David M. Steibel; Author of the Demacs FAQ; Internet: steibel@cs.umbc.edu
-
- The greatness of a nation and its moral progress can be measured by the way
- in which its animals are treated. - Mahatma Gandhi.
-