Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 72944:65c16038d6c9 | 72945:d4ecc69b8d2e |
|---|---|
| 1037 syntax_table = current_buffer->syntax_table; | 1037 syntax_table = current_buffer->syntax_table; |
| 1038 else | 1038 else |
| 1039 check_syntax_table (syntax_table); | 1039 check_syntax_table (syntax_table); |
| 1040 | 1040 |
| 1041 SET_RAW_SYNTAX_ENTRY (syntax_table, XINT (c), Fstring_to_syntax (newentry)); | 1041 SET_RAW_SYNTAX_ENTRY (syntax_table, XINT (c), Fstring_to_syntax (newentry)); |
| 1042 | |
| 1043 /* We clear the regexp cache, since character classes can now have | |
| 1044 different values from those in the compiled regexps.*/ | |
| 1045 clear_regexp_cache (); | |
| 1046 | |
| 1042 return Qnil; | 1047 return Qnil; |
| 1043 } | 1048 } |
| 1044 | 1049 |
| 1045 /* Dump syntax table to buffer in human-readable format */ | 1050 /* Dump syntax table to buffer in human-readable format */ |
| 1046 | 1051 |
