]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-language-environment): Load subst tables if necessary.
authorKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:21:21 +0000 (02:21 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:21:21 +0000 (02:21 +0000)
lisp/international/mule-cmds.el

index 24664f9fc64a61a86d745c29aba1cbbae8da1dca..0d4abab120c9da018ca2770564a823d2bfa5adc5 100644 (file)
@@ -1834,6 +1834,15 @@ specifies the character set for the major languages of Western Europe."
   (let ((func (get-language-info language-name 'setup-function)))
     (if (functionp func)
        (funcall func)))
+  (if (and utf-translate-cjk-mode
+          utf-translate-cjk-lang-env
+          (not (eq utf-translate-cjk-lang-env language-name))
+          (catch 'tag
+            (dolist (charset (get-language-info language-name 'charset))
+              (if (memq charset utf-translate-cjk-charsets)
+                  (throw 'tag t)))
+            nil))
+      (utf-translate-cjk-load-tables))
   (run-hooks 'set-language-environment-hook)
   (force-mode-line-update t))