diff options
| author | Kenichi Handa | 1997-05-12 07:00:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-12 07:00:08 +0000 |
| commit | 164c39f77e27ecb7cf4c534e6974ac64a3933101 (patch) | |
| tree | 058a0b47bce676ece76ce04aef14d0af0328dcf4 | |
| parent | 8f3c9fa0695812301c2a2a4c85e51e43261e756c (diff) | |
| download | emacs-164c39f77e27ecb7cf4c534e6974ac64a3933101.tar.gz emacs-164c39f77e27ecb7cf4c534e6974ac64a3933101.zip | |
Make functions setup-LANGUAGE-environment
interactive and add new functions describe-LANGUAGE-support for
all LANGUAGEs supported. Remove resisterations of input methods
which use the function encoded-kbd-select-terminal.
(setup-english-environment): Set
sendmail-coding-system and rmail-file-coding-system to nil.
| -rw-r--r-- | lisp/language/english.el | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/lisp/language/english.el b/lisp/language/english.el index e4ff06861ad..8e5d3c8d64e 100644 --- a/lisp/language/english.el +++ b/lisp/language/english.el | |||
| @@ -31,7 +31,28 @@ | |||
| 31 | ;;; Code | 31 | ;;; Code |
| 32 | 32 | ||
| 33 | (defun setup-english-environment () | 33 | (defun setup-english-environment () |
| 34 | "Reset MULE (multilingual environment) to the default status." | 34 | "Reset multilingual environment of Emacs to the default status. |
| 35 | The default status is as follows. | ||
| 36 | |||
| 37 | The default value of enable-multibyte-characters is t. | ||
| 38 | |||
| 39 | The default value of buffer-file-coding-system is iso-8859-1. | ||
| 40 | The coding system for terminal output is nil. | ||
| 41 | The coding system for keyboard input is nil. | ||
| 42 | |||
| 43 | The order of priorities of coding categories and the coding system | ||
| 44 | bound to each category are as follows | ||
| 45 | coding category coding system | ||
| 46 | -------------------------------------------------- | ||
| 47 | coding-category-iso-7 iso-2022-7 | ||
| 48 | coding-category-iso-8-2 iso-8859-1 | ||
| 49 | coding-category-iso-8-1 iso-8859-1 | ||
| 50 | coding-category-iso-else iso-8859-1 | ||
| 51 | coding-category-internal internal | ||
| 52 | coding-category-binary no-conversion | ||
| 53 | coding-category-sjis sjis | ||
| 54 | coding-category-big5 big5 | ||
| 55 | " | ||
| 35 | (interactive) | 56 | (interactive) |
| 36 | (setq-default enable-multibyte-characters t) | 57 | (setq-default enable-multibyte-characters t) |
| 37 | (if (local-variable-p 'enable-multibyte-characters) | 58 | (if (local-variable-p 'enable-multibyte-characters) |
| @@ -57,16 +78,28 @@ | |||
| 57 | coding-category-big5)) | 78 | coding-category-big5)) |
| 58 | 79 | ||
| 59 | (setq-default buffer-file-coding-system 'iso-8859-1) | 80 | (setq-default buffer-file-coding-system 'iso-8859-1) |
| 60 | (set-terminal-coding-system 'iso-8859-1) | 81 | (set-terminal-coding-system nil) |
| 61 | (set-keyboard-coding-system 'iso-8859-1) | 82 | (set-keyboard-coding-system nil) |
| 83 | |||
| 84 | (setq sendmail-coding-system nil | ||
| 85 | rmail-file-coding-system nil) | ||
| 62 | ) | 86 | ) |
| 63 | 87 | ||
| 88 | (defun describe-english-support () | ||
| 89 | "Describe how Emacs support English." | ||
| 90 | (interactive) | ||
| 91 | (describe-language-support-internal "English")) | ||
| 92 | |||
| 64 | (set-language-info-alist | 93 | (set-language-info-alist |
| 65 | "English" '((setup-function . setup-english-environment) | 94 | "English" '((setup-function . setup-english-environment) |
| 95 | (describe-function . describe-english-support) | ||
| 66 | (tutorial . "TUTORIAL") | 96 | (tutorial . "TUTORIAL") |
| 67 | (charset . (ascii)) | 97 | (charset . (ascii)) |
| 68 | (documentation . t) | 98 | (sample-text . "Hello!, Hi!, How are you?") |
| 69 | (sample-text . "Hello!, Hi!, How are you?"))) | 99 | (documentation . "\ |
| 100 | There's nothing special you should care to handle English in Emacs. | ||
| 101 | You can use English both with enable-multibyte-characters t and nil.") | ||
| 102 | )) | ||
| 70 | 103 | ||
| 71 | (register-input-method "English" | 104 | (register-input-method "English" |
| 72 | '("quail-dvorak" quail-use-package "quail/latin")) | 105 | '("quail-dvorak" quail-use-package "quail/latin")) |