[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99616: * regex.c (regex_compile): Se
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99616: * regex.c (regex_compile): Setup gl_state as well. |
Date: |
Fri, 05 Mar 2010 14:54:39 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99616
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Fri 2010-03-05 14:54:39 -0500
message:
* regex.c (regex_compile): Setup gl_state as well.
modified:
src/ChangeLog
src/regex.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-03-05 18:42:38 +0000
+++ b/src/ChangeLog 2010-03-05 19:54:39 +0000
@@ -1,5 +1,7 @@
2010-03-05 Stefan Monnier <address@hidden>
+ * regex.c (regex_compile): Setup gl_state as well.
+
* syntax.c (skip_chars): Setup gl_state (bug#3823).
(in_classes): Use CONSP before XCAR/XCDR.
=== modified file 'src/regex.c'
--- a/src/regex.c 2010-01-27 05:17:35 +0000
+++ b/src/regex.c 2010-03-05 19:54:39 +0000
@@ -3065,6 +3065,13 @@
don't need to handle them for multibyte.
They are distinguished by a negative wctype. */
+ /* Setup the gl_state object to its buffer-defined
+ value. This hardcodes the buffer-global
+ syntax-table for ASCII chars, while the other chars
+ will obey syntax-table properties. It's not ideal,
+ but it's the way it's been done until now. */
+ SETUP_SYNTAX_TABLE (BEGV, 0);
+
for (ch = 0; ch < 256; ++ch)
{
c = RE_CHAR_TO_MULTIBYTE (ch);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99616: * regex.c (regex_compile): Setup gl_state as well.,
Stefan Monnier <=