unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* "Invalid regular expression" in visual-basic-mode.el
@ 2004-09-17  7:45 Mathias Dahl
  2004-09-17  7:50 ` Mathias Dahl
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Dahl @ 2004-09-17  7:45 UTC (permalink / raw)



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.

/Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Invalid regular expression" in visual-basic-mode.el
  2004-09-17  7:45 "Invalid regular expression" in visual-basic-mode.el Mathias Dahl
@ 2004-09-17  7:50 ` Mathias Dahl
  2004-09-17 23:45   ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Dahl @ 2004-09-17  7:50 UTC (permalink / raw)


Mathias Dahl <brakjoller@hotmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Invalid regular expression" in visual-basic-mode.el
  2004-09-17  7:50 ` Mathias Dahl
@ 2004-09-17 23:45   ` Kevin Rodgers
  2004-09-20 12:16     ` Mathias Dahl
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2004-09-17 23:45 UTC (permalink / raw)


Mathias Dahl wrote:
 > Mathias Dahl <brakjoller@hotmail.com> 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?

\_ (backslash-underscore ) is not a defined regexp construct.  In the
past it was treated as a 2-character sequence; apparently now that
should be represented as "\\\\_".

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Invalid regular expression" in visual-basic-mode.el
  2004-09-17 23:45   ` Kevin Rodgers
@ 2004-09-20 12:16     ` Mathias Dahl
  0 siblings, 0 replies; 4+ messages in thread
From: Mathias Dahl @ 2004-09-20 12:16 UTC (permalink / raw)


Kevin Rodgers <ihs_4664@yahoo.com> writes:

>  > But still, is it really invalid?
> 
> \_ (backslash-underscore ) is not a defined regexp construct.  In the
> past it was treated as a 2-character sequence; apparently now that
> should be represented as "\\\\_".

So, is it a bug or a feature?

/Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-20 12:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-17  7:45 "Invalid regular expression" in visual-basic-mode.el Mathias Dahl
2004-09-17  7:50 ` Mathias Dahl
2004-09-17 23:45   ` Kevin Rodgers
2004-09-20 12:16     ` Mathias Dahl

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).