Mercurial > emacs
diff src/regex.c @ 72925:e47e040fc9da
(re_compile_pattern): Set gl_state.current_syntax_table.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sat, 16 Sep 2006 15:28:47 +0000 |
| parents | 9e57a1e7c532 |
| children | 2e2651f3d494 b5c13d1564a9 |
line wrap: on
line diff
--- 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;
