[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Searching the uncommented text
From: |
Seung H. Choi |
Subject: |
Re: Searching the uncommented text |
Date: |
Mon, 19 Dec 2005 15:04:33 -0500 |
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 <spam@mouse-potato.com> wrote:
> "Seung H. Choi" <schoi21c+help-gnu-emacs@gmail.com> 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
>