# HG changeset patch # User Richard M. Stallman # Date 1158420527 0 # Node ID e47e040fc9da620035fa67ce79d8b041a178cfa4 # Parent d506450278304d04d139a9873d3ef232e898d9d2 (re_compile_pattern): Set gl_state.current_syntax_table. diff -r d50645027830 -r e47e040fc9da src/regex.c --- a/src/regex.c Sat Sep 16 15:05:47 2006 +0000 +++ b/src/regex.c Sat Sep 16 15:28:47 2006 +0000 @@ -6197,6 +6197,10 @@ { 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;