From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: Re: Finding C style comments using isearch-forward-regexp Date: Wed, 19 Feb 2003 19:03:57 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84lm0c9x1e.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045674703 15568 80.91.224.249 (19 Feb 2003 17:11:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 17:11:43 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lXky-00042q-00 for ; Wed, 19 Feb 2003 18:11:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lXjz-00081m-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 12:10:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 19 Feb 2003 11:05:13 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i386-msvc-nt5.0.2195) Cancel-Lock: sha1:CGXLmmReqqV6k4kQAR7arXJJ1tw= Original-Lines: 20 Original-X-Trace: sv3-wwagUqJY5orVjT1lwSE/8v2R6Q2ht3GCBieEs7q+ApdwwVZT6QHeJPyZg6kOjg7kxgHAEeoJ48/Rf/L!sUUoZjTXeSBJ8KQUStwV8udre+ex+TRZ4xbm+UbrO2PfQt+Bz8Xi Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:110392 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6894 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6894 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > Timur Aydin 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. Hmm, that seems like a workaround. But the mentioned regexp not working indicates a bug in the emacs regexp handler, doesn't it? -- Timur Aydin