aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-03-05 14:54:39 -0500
committerStefan Monnier2010-03-05 14:54:39 -0500
commit254c06a8d8d516a22c9b72dd1c1e32a2e6a83139 (patch)
treebbfbd50d7f86a0e645cafa6f56c9b2f588ca53ba /src
parent618db430981dbc0dfed318503808bb7b744750b7 (diff)
downloademacs-254c06a8d8d516a22c9b72dd1c1e32a2e6a83139.tar.gz
emacs-254c06a8d8d516a22c9b72dd1c1e32a2e6a83139.zip
* regex.c (regex_compile): Setup gl_state as well.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/regex.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c6bb157aea7..f7226d6fc6f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-03-05 Stefan Monnier <monnier@iro.umontreal.ca> 12010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * regex.c (regex_compile): Setup gl_state as well.
4
3 * syntax.c (skip_chars): Setup gl_state (bug#3823). 5 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4 (in_classes): Use CONSP before XCAR/XCDR. 6 (in_classes): Use CONSP before XCAR/XCDR.
5 7
diff --git a/src/regex.c b/src/regex.c
index bb921a5b519..f242446796d 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -3065,6 +3065,13 @@ regex_compile (pattern, size, syntax, bufp)
3065 don't need to handle them for multibyte. 3065 don't need to handle them for multibyte.
3066 They are distinguished by a negative wctype. */ 3066 They are distinguished by a negative wctype. */
3067 3067
3068 /* Setup the gl_state object to its buffer-defined
3069 value. This hardcodes the buffer-global
3070 syntax-table for ASCII chars, while the other chars
3071 will obey syntax-table properties. It's not ideal,
3072 but it's the way it's been done until now. */
3073 SETUP_SYNTAX_TABLE (BEGV, 0);
3074
3068 for (ch = 0; ch < 256; ++ch) 3075 for (ch = 0; ch < 256; ++ch)
3069 { 3076 {
3070 c = RE_CHAR_TO_MULTIBYTE (ch); 3077 c = RE_CHAR_TO_MULTIBYTE (ch);