Path: utzoo!utgpu!watserv1!watmath!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!NCoast.ORG!allbery From: allbery@NCoast.ORG Newsgroups: gnu.emacs Subject: search the 2nd time Message-ID: <9002072357.AA20110@NCoast.ORG> Date: 7 Feb 90 23:57:50 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29 In your message of Wed, 07 Feb 90 14:57:17 EST, you write: +--------------- | Some people here (edt users) want search mapped to a key | and re-search for that string mapped to another key. I see the function | re-search, but I don't know how to make it keep the search string like | the 2nd ctrl-S does. Would someone show me how to do this? | We're running GNU.18.51 on a Ultrix machine. | Thanks | Drew Burton | American Math Society | drb@math.ams.com | ------- +--------------- Emacs "re-search" does not mean "repeat search"; it means "search using regular expression". To repeat a search, simply call the search function again and press RET for the search string. It is possible that you can formalize that as a function (untested): (defun repe{vt-sw3earch-forward () "Repeat search" (interactive) (search-forward "")) No promises.... ++Brandon