# HG changeset patch # User Stefan Monnier # Date 1267818879 18000 # Node ID a2b9cb6b7cb7447e8df0ebb0ef7be9be45ec6668 # Parent 230cb6c595260fd7eb297b87b9857e573556e23c * regex.c (regex_compile): Setup gl_state as well. diff -r 230cb6c59526 -r a2b9cb6b7cb7 src/ChangeLog --- a/src/ChangeLog Fri Mar 05 13:42:38 2010 -0500 +++ b/src/ChangeLog Fri Mar 05 14:54:39 2010 -0500 @@ -1,5 +1,7 @@ 2010-03-05 Stefan Monnier + * 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. diff -r 230cb6c59526 -r a2b9cb6b7cb7 src/regex.c --- a/src/regex.c Fri Mar 05 13:42:38 2010 -0500 +++ b/src/regex.c Fri Mar 05 14:54:39 2010 -0500 @@ -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);