From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: does emacs support incremental searching for partial matches? Date: Wed, 23 Feb 2011 08:34:47 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <874o7vrbwo.fsf@rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298410851 427 80.91.229.12 (22 Feb 2011 21:40:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 21:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 22:40:46 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrzyN-00049N-Ix for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 22:40:43 +0100 Original-Received: from localhost ([127.0.0.1]:48306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrzyL-00067K-8B for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 16:40:41 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:jAZMd8TtTEUUnQZKFbTwSgBsgOA= Original-Lines: 50 Original-NNTP-Posting-Host: 028ff4a6.news.astraweb.com Original-X-Trace: DXC=dA7`5H>?MLm\; 1IogBA]HfL?0kYOcDh@jW\:Hm@YlDbj=748>4V; d\`OIk2Qd`3ICoI1:[6aYEV7o Original-Xref: usenet.stanford.edu gnu.emacs.help:185199 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:79357 Archived-At: Leh CHAO writes: > Hi, > > I'm wondering if emacs has built-in support for incremental searching > for partial matches, such as searching for 'memcache' matches > 'memorycache'. It would be really helpful to me when I'm working on > Visual C++ code because the programmers tend to use long variable > names. > > Thanks! > > eric > Yes, you have regexp-search ,----[ C-h k CONTROL meta s ] | CONTROL meta s runs the command isearch-forward-regexp, which is an | interactive compiled Lisp function in `isearch.el'. | | It is bound to CONTROL meta s , | . | | (isearch-forward-regexp &optional NOT-REGEXP NO-RECURSIVE-EDIT) | | Do incremental search forward for regular expression. | With a prefix argument, do a regular string search instead. | Like ordinary incremental search except that your input is treated | as a regexp. See the command `isearch-forward' for more information. | | In regexp incremental searches, a space or spaces normally matches | any whitespace (the variable `search-whitespace-regexp' controls | precisely what that means). If you want to search for a literal space | and nothing else, enter C-q SPC. | | [back] `---- However, from your description, it sounds like what you really want is to use emacs' TAGS facility, which will help you find specific code 'tags'. Also look into imenu, speedbar and cedet. Emacs has a lot of tools to support coding, particularly with languages like C/C++. Some of the tools take a bit o effort to get configured the first time, but once you have learnt them, they make things very productive/easy. Tim -- tcross (at) rapttech dot com dot au