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: Finding C style comments using isearch-forward-regexp Date: Wed, 19 Feb 2003 15:40:48 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045662421 18307 80.91.224.249 (19 Feb 2003 13:47:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 13:47:01 +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 18lUYt-0004ku-00 for ; Wed, 19 Feb 2003 14:47:00 +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 18lUXV-0002bQ-03 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 08:45:33 -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 07:42:15 -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:H0akqXJjeWORbBQSKwwFtceC4kM= Original-Lines: 29 Original-X-Trace: sv3-saIlfpQyiltX1YXzj3sy0pPRefkMp3zsS0N387F6/FOOmTrw6k9Yjc+rzjjxD4iSSDZGD0wEzGcCqII!dtFxgDzd7gGUFNy/89aGAV/n3YGPOCXbmI/9D6XgnZs1XaymtVpmjw== 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:110377 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:6879 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6879 Hi, 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\)*\*/ Basically, I am telling emacs to first find the opening comment "/*", then any number of any character or newline and then the closing comment "*/". However, immediately after typing the * after the closing parenthesis, emacs tells me: [(error stack overflow in regexp matcher)] I have found a simpler regexp that causes this error. This regexp is part of the one specified above and finds any character or newline any number of times: \(.\|^J\)* Even though this is not a trivial regexp, it is fairly basic and I cannot come up with an alternate syntax to achieve the same effect. Please help... -- Timur Aydin