Commit 254c06a8 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* regex.c (regex_compile): Setup gl_state as well.

parent 618db430
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.
......@@ -3065,6 +3065,13 @@ regex_compile (pattern, size, syntax, bufp)
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. */
for (ch = 0; ch < 256; ++ch)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment