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

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

Re: Finding C style comments using isearch-forward-regexp


From: Kai Großjohann
Subject: Re: Finding C style comments using isearch-forward-regexp
Date: Wed, 19 Feb 2003 15:15:25 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

Timur Aydin <timuraydin@superonline.com> writes:

> I am struggling to find C style comments using the
> isearch-forward-regexp function (C-M-s). Here is the regexp that I am
> using:
>
> /\*\(.\|^J\)*\*/

Why with a regexp?  Why not use a command like forward-comment?

Or you could use font-lock and just search for the next character
which has comment face.
-- 
A turnip curses Elvis


reply via email to

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