GNU bug report logs - #11663
Incorrect regexp match with explicitly numbered blocks

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Sat, 9 Jun 2012 23:28:01 UTC

Severity: normal

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Vitalie Spinu <spinuvit <at> gmail.com>
Subject: bug#11663: closed (Re: bug#11663: Incorrect regexp match with
 explicitly numbered blocks)
Date: Sun, 10 Jun 2012 08:58:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#11663: Incorrect regexp match with explicitly numbered blocks 

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 11663 <at> debbugs.gnu.org.

-- 
11663: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11663
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 11663-done <at> debbugs.gnu.org
Subject: Re: bug#11663: Incorrect regexp match with explicitly numbered blocks
Date: Sun, 10 Jun 2012 10:55:23 +0200
Thanks for the report.  The problem was that at_begline_loc_p wasn't
updated when the `(?N:' syntax was added.  I have also fixed a problem
with preceding backslashes that causes the ^ in patterns like "\\\\(^a)"
to be incorrectly taken non-literally.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

[Message part 3 (message/rfc822, inline)]
From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Incorrect regexp match with explicitly numbered blocks 
Date: Sat, 09 Jun 2012 23:26:28 +0200
Hi, 

Assume this buffer's text. M-x regexp-builder and try this regexp
"\\(?:^Hi\\)" which works correctly. Modify to "\\(?2:^Hi\\)" and you
will see that ^ is taken literally and does not match bol anymore.

I've tried this in emacs 23 and on GNU Emacs 24.1.50.1
(i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2012-06-08 on lakoocha,
modified by Debian.

Vitalie.




This bug report was last modified 12 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.