Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!liberte From: liberte@m.cs.uiuc.edu Newsgroups: comp.emacs Subject: Re: searching that wrap over lines Message-ID: <4300031@m.cs.uiuc.edu> Date: 19 Jan 89 20:22:00 GMT References: <2922@uvacs.cs.Virginia.EDU> Lines: 21 Nf-ID: #R:uvacs.cs.Virginia.EDU:2922:m.cs.uiuc.edu:4300031:000:774 Nf-From: m.cs.uiuc.edu!liberte Jan 19 14:22:00 1989 > 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? > > Ummm, GNU emacs comes with a perfectly good one, isearch-forward. > > p.s. There are also incremental regexp searches (isearch-*-regexp) in > case you were wondering. > jr@bbn.com or bbn!jr What he wants is a little different. Any space in the string should also be able to match a newline, or more generally, any whitespace. This is just isearch-forward-regexp, except with added convenience. A variable option could automatically replace space with [ \t\n\r\f]+ or, better, \\s-+. Dan LaLiberte uiucdcs!liberte liberte@cs.uiuc.edu liberte%a.cs.uiuc.edu@uiucvmd.bitnet