diff options
| author | Eli Zaretskii | 1999-03-16 14:18:40 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1999-03-16 14:18:40 +0000 |
| commit | ec241f58e0d5d01fc340ff8cf42cf43db5bf22e1 (patch) | |
| tree | 0d57a86d902db688af7c8601442cb75a050e2495 | |
| parent | e1b674a1383adfb093d02c19554a3c7b7a35c9fe (diff) | |
| download | emacs-ec241f58e0d5d01fc340ff8cf42cf43db5bf22e1.tar.gz emacs-ec241f58e0d5d01fc340ff8cf42cf43db5bf22e1.zip | |
(set-language-environment): Don't use
cpNNN-nonascii-translation-table if it is unbound.
| -rw-r--r-- | lisp/international/mule-cmds.el | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 1cc43e8b640..68c91a75aca 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1247,19 +1247,16 @@ specifies the character set for the major languages of Western Europe." | |||
| 1247 | (setq input-method-history | 1247 | (setq input-method-history |
| 1248 | (cons input-method | 1248 | (cons input-method |
| 1249 | (delete input-method input-method-history)))))) | 1249 | (delete input-method input-method-history)))))) |
| 1250 | (let ((nonascii (get-language-info language-name 'nonascii-translation))) | 1250 | (let ((nonascii (get-language-info language-name 'nonascii-translation)) |
| 1251 | (dos-table | ||
| 1252 | (intern (concat "cp" dos-codepage "-nonascii-translation-table")))) | ||
| 1251 | (cond | 1253 | (cond |
| 1252 | ((char-table-p nonascii) | 1254 | ((char-table-p nonascii) |
| 1253 | (setq nonascii-translation-table nonascii)) | 1255 | (setq nonascii-translation-table nonascii)) |
| 1254 | ((eq window-system 'pc) | 1256 | ((and (eq window-system 'pc) (boundp dos-table)) |
| 1255 | ;; DOS terminals' default is to use a special non-ASCII translation | 1257 | ;; DOS terminals' default is to use a special non-ASCII translation |
| 1256 | ;; table as appropriate for the installed codepage. | 1258 | ;; table as appropriate for the installed codepage. |
| 1257 | (setq | 1259 | (setq nonascii-translation-table (symbol-value dos-table))) |
| 1258 | nonascii-translation-table (symbol-value | ||
| 1259 | (intern | ||
| 1260 | (concat "cp" | ||
| 1261 | dos-codepage | ||
| 1262 | "-nonascii-translation-table"))))) | ||
| 1263 | ((charsetp nonascii) | 1260 | ((charsetp nonascii) |
| 1264 | (setq nonascii-insert-offset (- (make-char nonascii) 128))))) | 1261 | (setq nonascii-insert-offset (- (make-char nonascii) 128))))) |
| 1265 | 1262 | ||