changeset 56031:7f29c9c8a3a4

Temporarily set utf-translate-cjk-mode to nil.
author Kenichi Handa <handa@m17n.org>
date Fri, 11 Jun 2004 06:03:16 +0000
parents c66eebe86159
children 9cb755ea4108
files lisp/international/characters.el
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/characters.el	Fri Jun 11 05:59:35 2004 +0000
+++ b/lisp/international/characters.el	Fri Jun 11 06:03:16 2004 +0000
@@ -33,6 +33,11 @@
 
 ;;; Code:
 
+;; We must set utf-translate-cjk-mode to nil while loading this file
+;; to avoid translating CJK characters in decode-char.
+(defvar saved-utf-translate-cjk-mode utf-translate-cjk-mode)
+(setq utf-translate-cjk-mode nil)
+
 ;;; Predefined categories.
 
 ;; For each character set.
@@ -1277,6 +1282,10 @@
     (put-charset-property (car l) 'nospace-between-words t)
     (setq l (cdr l))))
 
+
+(setq utf-translate-cjk-mode saved-utf-translate-cjk-mode)
+(makunbound 'saved-utf-translate-cjk-mode)
+
 ;;; Local Variables:
 ;;; coding: iso-2022-7bit
 ;;; End: