changeset 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 d50645027830
children 70bc5da33dfa
files src/regex.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;