From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Seung H. Choi" Newsgroups: gmane.emacs.help Subject: Re: Searching the uncommented text Date: Mon, 19 Dec 2005 15:04:33 -0500 Message-ID: <18d610430512191204s3ddfdf3bi363bc99d5e7ad9f3@mail.gmail.com> References: <877ja22jwq.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135027831 31771 80.91.229.2 (19 Dec 2005 21:30:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 21:30:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 22:30:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoSUz-0002r6-NG for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 22:24:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoSVq-0006pi-Dw for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 16:25:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoRGY-00055u-9X for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 15:05:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoRGP-000542-Gl for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 15:05:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoRGP-00053x-BY for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 15:05:41 -0500 Original-Received: from [66.249.82.201] (helo=xproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoRJO-0008Ix-5m for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 15:08:46 -0500 Original-Received: by xproxy.gmail.com with SMTP id t11so877019wxc for ; Mon, 19 Dec 2005 12:04:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r16b9UX0Tpkv5XcIeWwHal8xXIMgLKNbahjknOXr2cDpKG5p0XFPpUrKwga9K/Q31uAVnNG7c/840tadVDpJClGtT+L7WQTyCKou5JgeWrgGmS7hIOwZCIm3GkaQTq8Pz/KzY8HRG1ZzbGQMtiXB+he5KW7m+8Dk3FEU6n8pLcs= Original-Received: by 10.70.98.11 with SMTP id v11mr4993070wxb; Mon, 19 Dec 2005 12:04:34 -0800 (PST) Original-Received: by 10.70.69.11 with HTTP; Mon, 19 Dec 2005 12:04:33 -0800 (PST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <877ja22jwq.fsf@thalassa.informatimago.com> Content-Disposition: inline X-Mailman-Approved-At: Mon, 19 Dec 2005 16:25:24 -0500 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:32074 Archived-At: Thanks, but is there a way to set a hot-key for this functionality? For general search, ctrl+S will move the cursor to the next matching text. If I can set up a hot key, then I would be able to search through the code that are not comments. -Seung On 12/18/05, Pascal Bourguignon wrote: > "Seung H. Choi" writes: > > How do I search the text that are not commented? If there is such a > > feature, it would really help in lots of cases. > > M-x isearch-forward-regexp RET ^[^;]*text.* RET > > That is, in lisp sources where the comments start with ';'. > > > For C++, you could do: > > M-x isearch-forward-regexp RET ^\(/[^/]\|[^/]\)*text.* RET > > > > -- > __Pascal Bourguignon__ http://www.informatimago.com/ > Our enemies are innovative and resourceful, and so are we. They never > stop thinking about new ways to harm our country and our people, and > neither do we. -- Georges W. Bush > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >