help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching the uncommented text


From: Pascal Bourguignon
Subject: Re: Searching the uncommented text
Date: Sun, 18 Dec 2005 22:08:05 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]