From: tomo Date: Wed, 5 Sep 2001 09:30:54 +0000 (+0000) Subject: (find_context): Use `buf->syntax_table' instead of X-Git-Tag: r21-2-41-syntax-1~5 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5041b70b7f22b5d14c98641225981fbec5ea28e;p=chise%2Fxemacs-chise.git (find_context): Use `buf->syntax_table' instead of `buf->mirror_syntax_table' in XEmacs UTF-2000. --- diff --git a/src/font-lock.c b/src/font-lock.c index 6cd74d7..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. @@ -414,7 +415,11 @@ static void find_context (struct buffer *buf, Bufpos pt) { /* This function can GC */ +#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;