aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1998-08-02 01:06:57 +0000
committerKenichi Handa1998-08-02 01:06:57 +0000
commit45d08cb2bc1ec8e2f454bbc255fcc065caa48c1e (patch)
tree933619b68208e8551ba29c5df76c20d865036a07
parenta1223d6ce9c1db51d64e97b3787181c8f709e2b8 (diff)
downloademacs-45d08cb2bc1ec8e2f454bbc255fcc065caa48c1e.tar.gz
emacs-45d08cb2bc1ec8e2f454bbc255fcc065caa48c1e.zip
(language-info-alist): Doc-string
modified. (set-language-environment): Setup nonascii-translation-table and charset-origin-alist according to the property of the specified language environment. (update-iso-coding-systems): Make it an alias for update-coding-systems-internal. (prefer-coding-system): Call update-coding-systems-internal instead of update-iso-coding-systems. (set-language-environment-coding-systems): Likewise.
-rw-r--r--lisp/international/mule-cmds.el22
1 files changed, 19 insertions, 3 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 8b9a9a13ac5..4b041e75d5a 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -209,6 +209,9 @@ This also sets the following values:
209 (setq default-keyboard-coding-system coding-system) 209 (setq default-keyboard-coding-system coding-system)
210 (setq default-process-coding-system (cons coding-system coding-system))) 210 (setq default-process-coding-system (cons coding-system coding-system)))
211 211
212(defalias 'update-iso-coding-systems 'update-coding-systems-internal)
213(make-obsolete 'update-iso-coding-systems 'update-coding-systems-internal)
214
212(defun prefer-coding-system (coding-system) 215(defun prefer-coding-system (coding-system)
213 "Add CODING-SYSTEM at the front of the priority list for automatic detection. 216 "Add CODING-SYSTEM at the front of the priority list for automatic detection.
214This also sets the following coding systems: 217This also sets the following coding systems:
@@ -227,7 +230,7 @@ This also sets the following values:
227 ;; CODING-SYSTEM is no-conversion or undecided. 230 ;; CODING-SYSTEM is no-conversion or undecided.
228 (error "Can't prefer the coding system `%s'" coding-system)) 231 (error "Can't prefer the coding system `%s'" coding-system))
229 (set coding-category (or base coding-system)) 232 (set coding-category (or base coding-system))
230 (update-iso-coding-systems) 233 (update-coding-systems-internal)
231 (if (not (eq coding-category (car coding-category-list))) 234 (if (not (eq coding-category (car coding-category-list)))
232 ;; We must change the order. 235 ;; We must change the order.
233 (setq coding-category-list 236 (setq coding-category-list
@@ -502,7 +505,16 @@ Meaningful values for KEY include
502 coding-priority value is a list of coding systems for this language 505 coding-priority value is a list of coding systems for this language
503 environment, in order of decreasing priority. 506 environment, in order of decreasing priority.
504 This is used to set up the coding system priority 507 This is used to set up the coding system priority
505 list when you switch to this language environment.") 508 list when you switch to this language environment.
509
510 nonascii-translation-table
511 value is a translation table to be set to the
512 variable `nonascii-translation-table' in this
513 language environment.
514
515 charset-origin-alist
516 value is an alist to be set to the variable
517 `charset-origin-alist' in this language environment.")
506 518
507(defun get-language-info (lang-env key) 519(defun get-language-info (lang-env key)
508 "Return information listed under KEY for language environment LANG-ENV. 520 "Return information listed under KEY for language environment LANG-ENV.
@@ -983,6 +995,10 @@ specifies the character set for the major languages of Western Europe."
983 (set-terminal-coding-system (intern (downcase language-name))) 995 (set-terminal-coding-system (intern (downcase language-name)))
984 (standard-display-european-internal)) 996 (standard-display-european-internal))
985 (setq current-language-environment language-name) 997 (setq current-language-environment language-name)
998 (setq nonascii-translation-table
999 (get-language-info language-name 'nonascii-translation-table))
1000 (setq charset-origin-alist
1001 (get-language-info language-name 'charset-origin-alist))
986 (funcall (get-language-info language-name 'setup-function)) 1002 (funcall (get-language-info language-name 'setup-function))
987 (run-hooks 'set-language-environment-hook) 1003 (run-hooks 'set-language-environment-hook)
988 (force-mode-line-update t)) 1004 (force-mode-line-update t))
@@ -1009,7 +1025,7 @@ specifies the character set for the major languages of Western Europe."
1009 (while priority 1025 (while priority
1010 (set (car categories) (car priority)) 1026 (set (car categories) (car priority))
1011 (setq priority (cdr priority) categories (cdr categories))) 1027 (setq priority (cdr priority) categories (cdr categories)))
1012 (update-iso-coding-systems))))) 1028 (update-coding-systems-internal)))))
1013 1029
1014;; Print all arguments with `princ', then print "\n". 1030;; Print all arguments with `princ', then print "\n".
1015(defsubst princ-list (&rest args) 1031(defsubst princ-list (&rest args)