diff options
| author | Kenichi Handa | 2002-08-15 02:27:11 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-08-15 02:27:11 +0000 |
| commit | 7dd42fb1d9f2f9f3e02fde215b837e3729ac4529 (patch) | |
| tree | 547769fa3d8e71c8958f0a838c1899b43a387563 | |
| parent | 9d6d303b20fd9118c5db246320627fb9ecfe8cc5 (diff) | |
| download | emacs-7dd42fb1d9f2f9f3e02fde215b837e3729ac4529.tar.gz emacs-7dd42fb1d9f2f9f3e02fde215b837e3729ac4529.zip | |
(reset-language-environment): Don't
set nonascii-translation-table and nonascii-insert-offset. Call
set-unibyte-charset, not set-primary-charset.
(nonascii-translation-table, nonascii-insert-offset): Declare
these variable as obsolete ones.
(set-language-environment): Call set-unibyte-charset, not
set-primary-charset. Call set-charset-priority with `charset'
info of the language environment.
| -rw-r--r-- | lisp/international/mule-cmds.el | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 42fb7b4c29e..3172e11115c 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -726,8 +726,8 @@ Meaningful values for KEY include | |||
| 726 | 726 | ||
| 727 | documentation value is documentation of what this language environment | 727 | documentation value is documentation of what this language environment |
| 728 | is meant for, and how to use it. | 728 | is meant for, and how to use it. |
| 729 | charset value is a list of the character sets used by this | 729 | charset value is a list of the character sets mainly used |
| 730 | language environment. | 730 | by this language environment. |
| 731 | sample-text value is an expression which is evalled to generate | 731 | sample-text value is an expression which is evalled to generate |
| 732 | a line of text written using characters appropriate | 732 | a line of text written using characters appropriate |
| 733 | for this language environment. | 733 | for this language environment. |
| @@ -744,10 +744,9 @@ Meaningful values for KEY include | |||
| 744 | This is used to set up the coding system priority | 744 | This is used to set up the coding system priority |
| 745 | list when you switch to this language environment. | 745 | list when you switch to this language environment. |
| 746 | nonascii-translation | 746 | nonascii-translation |
| 747 | value is a translation table to be set in the | 747 | value is a charset of dimension one to use for |
| 748 | variable `nonascii-translation-table' in this | 748 | converting a unibyte character to multibyte |
| 749 | language environment, or a character set from | 749 | and vice versa. |
| 750 | which `nonascii-insert-offset' is calculated. | ||
| 751 | input-method value is a default input method for this language | 750 | input-method value is a default input method for this language |
| 752 | environment. | 751 | environment. |
| 753 | features value is a list of features requested in this | 752 | features value is a list of features requested in this |
| @@ -1362,9 +1361,7 @@ The default status is as follows: | |||
| 1362 | ;;; (set-terminal-coding-system-internal nil) | 1361 | ;;; (set-terminal-coding-system-internal nil) |
| 1363 | ;;; (set-keyboard-coding-system-internal nil) | 1362 | ;;; (set-keyboard-coding-system-internal nil) |
| 1364 | 1363 | ||
| 1365 | (setq nonascii-translation-table nil | 1364 | (set-unibyte-charset 'iso-8859-1)) |
| 1366 | nonascii-insert-offset 0) | ||
| 1367 | (set-primary-charset 'iso-8859-1)) | ||
| 1368 | 1365 | ||
| 1369 | (reset-language-environment) | 1366 | (reset-language-environment) |
| 1370 | 1367 | ||
| @@ -1418,14 +1415,17 @@ specifies the character set for the major languages of Western Europe." | |||
| 1418 | (cons input-method | 1415 | (cons input-method |
| 1419 | (delete input-method input-method-history)))))) | 1416 | (delete input-method input-method-history)))))) |
| 1420 | 1417 | ||
| 1418 | (apply 'set-charset-priority (get-language-info language-name 'charset)) | ||
| 1419 | |||
| 1421 | ;; Note: For DOS, we assumed that the charset cpXXX is already | 1420 | ;; Note: For DOS, we assumed that the charset cpXXX is already |
| 1422 | ;; defined. | 1421 | ;; defined. |
| 1423 | (let ((nonascii (get-language-info language-name 'nonascii-translation))) | 1422 | (let ((nonascii (get-language-info language-name 'nonascii-translation))) |
| 1424 | (if (eq window-system 'pc) | 1423 | (if (eq window-system 'pc) |
| 1425 | (setq nonascii (intern "cp%d" dos-codepage))) | 1424 | (setq nonascii (intern "cp%d" dos-codepage))) |
| 1426 | (or (charsetp nonascii) | 1425 | (or (and (charsetp nonascii) |
| 1426 | (= (charset-dimension nonascii) 1)) | ||
| 1427 | (setq nonascii 'iso-8859-1)) | 1427 | (setq nonascii 'iso-8859-1)) |
| 1428 | (set-primary-charset nonascii)) | 1428 | (set-unibyte-charset nonascii)) |
| 1429 | 1429 | ||
| 1430 | ;; Unibyte setups if necessary. | 1430 | ;; Unibyte setups if necessary. |
| 1431 | (unless default-enable-multibyte-characters | 1431 | (unless default-enable-multibyte-characters |
| @@ -2058,4 +2058,8 @@ If CODING-SYSTEM can't safely encode CHAR, return nil." | |||
| 2058 | :group 'mule | 2058 | :group 'mule |
| 2059 | :global t) | 2059 | :global t) |
| 2060 | 2060 | ||
| 2061 | (defvar nonascii-insert-offset 0 "This variable is obsolete.") | ||
| 2062 | (defvar nonascii-translation-table nil "This variable is obsolete.") | ||
| 2063 | |||
| 2064 | |||
| 2061 | ;;; mule-cmds.el ends here | 2065 | ;;; mule-cmds.el ends here |