From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: "Invalid regular expression" in visual-basic-mode.el Date: 17 Sep 2004 09:50:16 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095408013 14205 80.91.229.6 (17 Sep 2004 08:00:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2004 08:00:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 17 10:00:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C8Df6-0003IS-00 for ; Fri, 17 Sep 2004 10:00:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8Dko-0007cX-Ca for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Sep 2004 04:06:02 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: news.uni-berlin.de w5B8myox7odBLQy82i19MgvzHCTCYhjTabaPbgtcwRyaSpxeIr User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:125375 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20730 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20730 Mathias Dahl writes: > I am testing Emacs CVS on Windows XP (fetched from the > nqemacs-project) and get errors in visual-basic-mode that I > did not get in 21.3. I have turned on debug-on-error and the > problem is with the following code: > > (looking-at "^.*\\_[ ]*$") > > If you evaluate the above you will get the error mentioned > in the subject line. > > Is this a bug in Emacs or in visual-basic-mode.el? I know a > bit of regexp myself and the example above seems valid to me. I solved my problem temporarily by changing the expression to this: (defconst visual-basic-continuation-regexp "^.*_[ \t]*$") That extra backslash did not seem to make sense. But still, is it really invalid? /Mathias