🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8334

Re: searching that wrap over lines

#8334
From: James Aspnes
Date: Wed, 18 Jan 1989 22:01
14 lines
978 bytes
In article <2922@uvacs.cs.Virginia.EDU> pausch@uvacs.cs.Virginia.EDU (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).

Isearch will do this, you just have to quote newlines using C-q.

E.g.: foo^Q^Jbar matches

fjfjfjekf foo
bar
-- 
Technical Details
Message-ID: <4056@pt.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!gatech!udel!rochester!pt.cs.cmu.edu!lancelot.avalon.cs.cmu.edu!asp
References: <2922@uvacs.cs.Virginia.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!gatech!udel!rochester!pt.cs.cmu.edu!lancelot.avalon.cs.cmu.edu!asp
From: asp@lancelot.avalon.cs.cmu.edu (James Aspnes)
Newsgroups: comp.emacs
Subject: Re: searching that wrap over lines
Message-ID: <4056@pt.cs.cmu.edu>
Date: 18 Jan 89 22:01:29 GMT
References: <2922@uvacs.cs.Virginia.EDU>
Organization: Carnegie-Mellon University, CS/RI
Lines: 13
In-reply-to: pausch@uvacs.cs.Virginia.EDU's message of 18 Jan 89 16:10:42 GMT