X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Ffont-lock.c;h=111bd0a5a31547bee617fa96d1ff0340d4eb1ea6;hb=4faa92777f0b49cc67da8ab24a5d6e66e845f963;hp=cefa0d5ed8559cbba8f593000c8f52d200a3fea8;hpb=2e3e3f9ee27fec50f45c282d71eaddf7c673bc56;p=chise%2Fxemacs-chise.git- diff --git a/src/font-lock.c b/src/font-lock.c index cefa0d5..111bd0a 100644 --- a/src/font-lock.c +++ b/src/font-lock.c @@ -1,6 +1,7 @@ /* Routines to compute the current syntactic context, for font-lock mode. Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. + Copyright (C) 2001 MORIOKA Tomohiko This file is part of XEmacs. @@ -368,8 +369,8 @@ setup_context_cache (struct buffer *buf, Bufpos pt) /* OK, fine. */ return; #if 0 - /* This appears to cause huge slowdowns in files like - emacsfns.h, which have no top-level forms. + /* This appears to cause huge slowdowns in files which have no + top-level forms. In any case, it's not really necessary that we know for sure the top-level form we're in; if we're in a form @@ -414,8 +415,11 @@ static void find_context (struct buffer *buf, Bufpos pt) { /* This function can GC */ - struct Lisp_Char_Table *mirrortab = - XCHAR_TABLE (buf->mirror_syntax_table); +#ifdef UTF2000 + Lisp_Char_Table *mirrortab = XCHAR_TABLE (buf->syntax_table); +#else + Lisp_Char_Table *mirrortab = XCHAR_TABLE (buf->mirror_syntax_table); +#endif Lisp_Object syntaxtab = buf->syntax_table; Emchar prev_c, c; Bufpos target = pt; @@ -769,8 +773,14 @@ syms_of_font_lock (void) } void -vars_of_font_lock (void) +reinit_vars_of_font_lock (void) { xzero (context_cache); xzero (bol_context_cache); } + +void +vars_of_font_lock (void) +{ + reinit_vars_of_font_lock (); +}