From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: incremental search Date: Wed, 25 Oct 2006 03:37:50 -0400 Organization: Symantec Message-ID: References: <87ods07tes.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1161762066 3005 80.91.229.2 (25 Oct 2006 07:41:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 07:41:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 25 09:41:03 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcdNl-00023Q-5j for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 09:41:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcdNk-0006XE-G5 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 03:41:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 25 Oct 2006 02:37:50 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) X-Copies-To: never Original-Lines: 45 Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-PHGorUMGoqfJbE70Yy8QVd8OIzgBXsM0n58CeyKQ0cB2RDebUmeD29uhedcTNP5tMXILAqoAem7wQ4l!3yX610122t7kCb0hFQ593ISXhUbHQEXuDHU9LU0xVmDzcworq5zuOz/fIYV/yrov1gPEWuDAiO6A!hbN+/MTn1uHJ+kPIPA9HkNNrEwZoxUv0bw== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:142642 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38262 Archived-At: In article <87ods07tes.fsf@trick.ulm.malte.spiess>, Malte Spiess wrote: > Barry Margolin writes: > > > In article , > > Gary Wessle wrote: > > > >> Hi > >> C-s turns on incremental search but it is not doing what I am > >> expecting which is; > >> when I want to find "man" it high finds "woman", how can I limit it to > >> the word "man", do I need to regex incremental search? > > > > If you don't mind a non-interactive search, you can use M-x > > word-search-forward. > > You can also type C-s RET C-w for word-search. But this somehow only > finds one occurance. If you mean that you can't just type C-s to go to the next one, that's what I meant about it being a non-interactive search. > > It is always possible to redefine a key, but if you're just a beginner I > would probably rather recommand making a regexp-search with the > beginning and the end of the word. > > I personally wouldn't want to have the behaviour you describe, maybe you > should think it over if it's really a fortune to have it generally (of > course sometimes it's helpful). It depends on what you're searching for. I've often been in the same situation as the OP, where the word I want is frequently found as a substring of unrelated words, so there are lots of spurious matches. I usually switch to regexp incremental search when this happens. C-s \ -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***