Path: utzoo!utgpu!watserv1!watmath!uunet!bu.edu!bu-cs!nntp-read!composer From: composer@bucsf.bu.edu (Jeff Kellem) Newsgroups: gnu.emacs Subject: Re: search the 2nd time Message-ID: Date: 8 Feb 90 04:06:17 GMT References: <9002071957.AA18568@life.ai.mit.edu> Sender: news@bu.edu.bu.edu Reply-To: composer@cs.bu.edu Distribution: gnu Organization: Boston Univ., Computer Science Lines: 32 In-reply-to: rodney@sun.ipl.rpi.edu's message of 7 Feb 90 21:42:44 GMT In article rodney@sun.ipl.rpi.edu (Rodney Peck II) writes: | >>>>> On 7 Feb 90 19:57:17 GMT, DRB@MATH.AMS.COM (Drew Burton) said: | | Drew> Some people here (edt users) want search mapped to a key | Drew> and re-search for that string mapped to another key. I see the | Drew> function re-search, but I don't know how to make it keep the search | Drew> string like the 2nd ctrl-S does. Would someone show me how to do | Drew> this? ...some text deleted... | What you want is a function that makes a "re-search" as in "search | again" for the same word. Actually, if all that is wanted is to search for the last incremental regexp search pattern used, then you already have what you want. Just as `C-s C-s' (or `C-r C-r') will recall the last string searched for, `M-C-s C-s' (or `M-C-r C-r') will recall the last regexp pattern searched for. This all assumes the default bindings of `C-s' to isearch-forward, and `M-C-s' to isearch-forward-regexp. Enjoy... -jeff p.s. All the above info is located in the GNU Emacs manual.. :) Jeff Kellem INTERNET: composer@cs.bu.edu (or composer@bu.edu) UUCP: ...!harvard!bu-cs!composer