From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leh CHAO Newsgroups: gmane.emacs.help Subject: Re: does emacs support incremental searching for partial matches? Date: Tue, 22 Feb 2011 11:33:03 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1298403236 20021 80.91.229.12 (22 Feb 2011 19:33:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 19:33:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 20:33:50 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 1PrxzZ-0001Gs-VY for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 20:33:50 +0100 Original-Received: from localhost ([127.0.0.1]:39179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrxzZ-0002cu-Dq for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 14:33:49 -0500 Original-Received: from [140.186.70.92] (port=45150 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prxyw-0002c0-Tf for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 14:33:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Prxyv-0008SQ-Ju for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 14:33:10 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:54952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Prxyv-0008SD-Du for help-gnu-emacs@gnu.org; Tue, 22 Feb 2011 14:33:09 -0500 Original-Received: by wyi11 with SMTP id 11so2478811wyi.0 for ; Tue, 22 Feb 2011 11:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VoGMnIUPzVLVC36LhQvqn4YGDI3UKEuHmS/NGGxwC2k=; b=VAMp2mLi4GSN9yf1wQoAXIzd7G7XeqIbHYp8zr1jkup9WI1VJxBKF+RnhZlKO69DWR IN9t48L8nAT6Vz6uYJO2P6K9B6eTGMnvbgsMAyCeuzS64z+xt7LMvOL38p2o4xsKVztj sbFCOqE4QxjNiaWg5TAi148DRyYKcjo/MsOYA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qTYbthv3YbND0T8Wn4/OfGFn7xBeh2hQgpH7NGMPM8NC5zdxHwA7hm20E7dICq0BEn l6M5pluRLaufiDXIQRoZLtk++haPRirOIJJQo0jDmA5KQPgcKgSQd14/bU2Gj583nzZQ sBergfFTovNohmLPX6T6MjY3lMy5/3c5yZghE= Original-Received: by 10.227.156.71 with SMTP id v7mr2789161wbw.101.1298403187030; Tue, 22 Feb 2011 11:33:07 -0800 (PST) Original-Received: by 10.227.155.6 with HTTP; Tue, 22 Feb 2011 11:33:03 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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:79347 Archived-At: Hi Drew, thank you for your help! Sometimes I would be able to know the .* part, for example, I want to match WindowsMemoryCacheManagement by using 'memcache'. With regular expression, I have to specify .*m.*e.*m.*c.*a.*c.*h.*e.* Is there any command or plugin I can use? Thanks! eric On Tue, Feb 22, 2011 at 6:21 AM, Drew Adams wrote: >> 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. > > You can use regexp search: `C-M-s mem.*cache'. > See `C-h r g regexp search RET'. > >