* bug#11663: Incorrect regexp match with explicitly numbered blocks
@ 2012-06-09 21:26 Vitalie Spinu
2012-06-10 8:55 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Vitalie Spinu @ 2012-06-09 21:26 UTC (permalink / raw)
To: 11663
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#11663: Incorrect regexp match with explicitly numbered blocks
2012-06-09 21:26 bug#11663: Incorrect regexp match with explicitly numbered blocks Vitalie Spinu
@ 2012-06-10 8:55 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2012-06-10 8:55 UTC (permalink / raw)
To: Vitalie Spinu; +Cc: 11663-done
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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-10 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-09 21:26 bug#11663: Incorrect regexp match with explicitly numbered blocks Vitalie Spinu
2012-06-10 8:55 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).