home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / emacs / 3595 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.2 KB

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