From: Richard M. Stallman Date: Sat, 16 Sep 2006 15:28:47 +0000 (+0000) Subject: (re_compile_pattern): Set gl_state.current_syntax_table. X-Git-Tag: emacs-pretest-22.0.90~519 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1208f11ada3e4b56feb4669e8ac608a0600f3cb1;p=emacs.git (re_compile_pattern): Set gl_state.current_syntax_table. --- diff --git a/src/regex.c b/src/regex.c index 846c87041b1..763b490c906 100644 --- a/src/regex.c +++ b/src/regex.c @@ -6197,6 +6197,10 @@ re_compile_pattern (pattern, length, bufp) { reg_errcode_t ret; +#ifdef emacs + gl_state.current_syntax_table = current_buffer->syntax_table; +#endif + /* GNU code is written to assume at least RE_NREGS registers will be set (and at least one extra will be -1). */ bufp->regs_allocated = REGS_UNALLOCATED;