diff options
| author | Dave Love | 2002-12-19 12:52:51 +0000 |
|---|---|---|
| committer | Dave Love | 2002-12-19 12:52:51 +0000 |
| commit | 166ce29fb6ea1ce6c869db85108cdac5905862d4 (patch) | |
| tree | c6fd702d7498175070d8830aa72c1fbf4350c582 | |
| parent | cf6d30d70422b3d7826cbfb065173d8008462e09 (diff) | |
| download | emacs-166ce29fb6ea1ce6c869db85108cdac5905862d4.tar.gz emacs-166ce29fb6ea1ce6c869db85108cdac5905862d4.zip | |
(standard-keyboard-coding-systems):
Deleted.
(set-locale-environment): Don't use it.
| -rw-r--r-- | lisp/international/mule-cmds.el | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 04269014ca0..62a4cd676d7 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2121,14 +2121,6 @@ the language name that would otherwise be used for this locale.") | |||
| 2121 | The first element whose locale regexp matches the start of a downcased locale | 2121 | The first element whose locale regexp matches the start of a downcased locale |
| 2122 | specifies the coding system to prefer when using that locale.") | 2122 | specifies the coding system to prefer when using that locale.") |
| 2123 | 2123 | ||
| 2124 | (defconst standard-keyboard-coding-systems | ||
| 2125 | (purecopy | ||
| 2126 | '(iso-latin-1 iso-latin-2 iso-latin-3 iso-latin-4 iso-latin-5 | ||
| 2127 | iso-latin-6 iso-latin-7 iso-latin-8 iso-latin-9 koi8-u koi8-r)) | ||
| 2128 | "Coding systems that are commonly used for keyboards. | ||
| 2129 | `set-locale-environment' will set the `keyboard-coding-system' if the | ||
| 2130 | coding-system specified by the locale setting is a member of this list.") | ||
| 2131 | |||
| 2132 | (defun locale-name-match (key alist) | 2124 | (defun locale-name-match (key alist) |
| 2133 | "Search for KEY in ALIST, which should be a list of regexp-value pairs. | 2125 | "Search for KEY in ALIST, which should be a list of regexp-value pairs. |
| 2134 | Return the value corresponding to the first regexp that matches the | 2126 | Return the value corresponding to the first regexp that matches the |
| @@ -2236,12 +2228,14 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 2236 | (when default-enable-multibyte-characters | 2228 | (when default-enable-multibyte-characters |
| 2237 | (set-display-table-and-terminal-coding-system language-name)) | 2229 | (set-display-table-and-terminal-coding-system language-name)) |
| 2238 | 2230 | ||
| 2239 | ;; Set the `keyboard-coding-system' if appropriate. | 2231 | ;; Set the `keyboard-coding-system' if appropriate (tty |
| 2240 | (let ((kcs (or coding-system | 2232 | ;; only). At least X and MS Windows can generate |
| 2241 | (car (get-language-info language-name | 2233 | ;; multilingual input. |
| 2242 | 'coding-system))))) | 2234 | (unless window-system |
| 2243 | (if (memq kcs standard-keyboard-coding-systems) | 2235 | (let ((kcs (or coding-system |
| 2244 | (set-keyboard-coding-system kcs))) | 2236 | (car (get-language-info language-name |
| 2237 | 'coding-system))))) | ||
| 2238 | (if kcs (set-keyboard-coding-system kcs)))) | ||
| 2245 | 2239 | ||
| 2246 | (setq locale-coding-system | 2240 | (setq locale-coding-system |
| 2247 | (car (get-language-info language-name 'coding-priority)))) | 2241 | (car (get-language-info language-name 'coding-priority)))) |