* Searching the uncommented text
@ 2005-12-18 17:56 Seung H. Choi
0 siblings, 0 replies; 3+ messages in thread
From: Seung H. Choi @ 2005-12-18 17:56 UTC (permalink / raw)
Hi,
How do I search the text that are not commented? If there is such a
feature, it would really help in lots of cases.
-Seung
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Searching the uncommented text
[not found] <mailman.19767.1134928636.20277.help-gnu-emacs@gnu.org>
@ 2005-12-18 21:08 ` Pascal Bourguignon
2005-12-19 20:04 ` Seung H. Choi
0 siblings, 1 reply; 3+ messages in thread
From: Pascal Bourguignon @ 2005-12-18 21:08 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Searching the uncommented text
2005-12-18 21:08 ` Pascal Bourguignon
@ 2005-12-19 20:04 ` Seung H. Choi
0 siblings, 0 replies; 3+ messages in thread
From: Seung H. Choi @ 2005-12-19 20:04 UTC (permalink / raw)
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-19 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-18 17:56 Searching the uncommented text Seung H. Choi
[not found] <mailman.19767.1134928636.20277.help-gnu-emacs@gnu.org>
2005-12-18 21:08 ` Pascal Bourguignon
2005-12-19 20:04 ` Seung H. Choi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).