Article View: comp.emacs
Article #8332Re: searching that wrap over lines
From: John Robinson
Date: Wed, 18 Jan 1989 20:14
Date: Wed, 18 Jan 1989 20:14
19 lines
1262 bytes
1262 bytes
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
Technical Details
Message-ID:
<34750@bbn.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!jr@bbn.comReferences:
<2922@uvacs.cs.Virginia.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)