2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
+ * 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.
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);