diff src/syntax.c @ 72945:d4ecc69b8d2e

* search.c (clear_regexp_cache): New function. * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 17 Sep 2006 17:38:59 +0000
parents 8d894204c732
children 8eceefbbcde7 b5c13d1564a9
line wrap: on
line diff
--- a/src/syntax.c	Sun Sep 17 15:31:54 2006 +0000
+++ b/src/syntax.c	Sun Sep 17 17:38:59 2006 +0000
@@ -1039,6 +1039,11 @@
     check_syntax_table (syntax_table);
 
   SET_RAW_SYNTAX_ENTRY (syntax_table, XINT (c), Fstring_to_syntax (newentry));
+
+  /* We clear the regexp cache, since character classes can now have
+     different values from those in the compiled regexps.*/
+  clear_regexp_cache ();
+
   return Qnil;
 }