]> git.eshelyaron.com Git - emacs.git/commitdiff
(re_compile_pattern): Set gl_state.current_syntax_table.
authorRichard M. Stallman <rms@gnu.org>
Sat, 16 Sep 2006 15:28:47 +0000 (15:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 16 Sep 2006 15:28:47 +0000 (15:28 +0000)
src/regex.c

index 846c87041b19ac57f3882c90c4c4537e20e7d4af..763b490c9063dddfea6b9e23c9e1d64b17916329 100644 (file)
@@ -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;