Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: searching that wrap over lines Keywords: search Message-ID: <34750@bbn.COM> Date: 18 Jan 89 20:14:46 GMT References: <2922@uvacs.cs.Virginia.EDU> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 19 In-reply-to: pausch@uvacs.cs.Virginia.EDU (Randy Pausch) In article <2922@uvacs.cs.Virginia.EDU>, pausch@uvacs (Randy Pausch) writes: >Does anyone have a GNUemacs lisp function handy that allows incremental >string searches to wrap over lines? (I guess this would involve >converting the string search to a regular expression search, so that >the newlines would match, as well as spaces). Ummm, GNU emacs comes with a perfectly good one, isearch-forward. If you type a return at it while it is prompting for a search string, it mathces that jsut like any other character. What? You say you have search-exit-char bound to return? Then just quote a newline with ^Q^J. Piece o' pie. p.s. There are also incremental regexp searches (isearch-*-regexp) in case you were wondering. -- /jr jr@bbn.com or bbn!jr