diff options
| author | Richard M. Stallman | 1998-04-26 00:13:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-26 00:13:54 +0000 |
| commit | 0828b971b5918e9018581b069144dcf3fac65c9a (patch) | |
| tree | 3745c1a5298a3a8959482e7d348edef5efdc01e5 | |
| parent | ebada62d33cd3b74528316cc7cb983753246cedc (diff) | |
| download | emacs-0828b971b5918e9018581b069144dcf3fac65c9a.tar.gz emacs-0828b971b5918e9018581b069144dcf3fac65c9a.zip | |
(setup-8-bit-environment): If default-enable-multibyte-characters is nil,
call standard-display-european, and don't set nonascii-insert-offset
or default-input-method.
| -rw-r--r-- | lisp/language/european.el | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el index bdff7120c58..28cb9c805d0 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el | |||
| @@ -34,14 +34,21 @@ | |||
| 34 | (setup-english-environment) | 34 | (setup-english-environment) |
| 35 | (set-language-environment-coding-systems language) | 35 | (set-language-environment-coding-systems language) |
| 36 | 36 | ||
| 37 | (if charset | 37 | (when default-enable-multibyte-characters |
| 38 | (let ((nonascii-offset (- (make-char charset) 128))) | 38 | (or (member (downcase language) |
| 39 | ;; Set up for insertion of characters in this character set | 39 | '("latin-1" "latin-2" "latin-3" "latin-4" "latin-5")) |
| 40 | ;; when codes 0200 - 0377 are typed in. | 40 | (error "Language environment `%s' not supported in unibyte mode")) |
| 41 | (setq nonascii-insert-offset nonascii-offset))) | 41 | (standard-display-european 1 (downcase language))) |
| 42 | 42 | ||
| 43 | (if input-method | 43 | (unless default-enable-multibyte-characters |
| 44 | (setq default-input-method input-method)) | 44 | (if charset |
| 45 | (let ((nonascii-offset (- (make-char charset) 128))) | ||
| 46 | ;; Set up for insertion of characters in this character set | ||
| 47 | ;; when codes 0200 - 0377 are typed in. | ||
| 48 | (setq nonascii-insert-offset nonascii-offset))) | ||
| 49 | |||
| 50 | (if input-method | ||
| 51 | (setq default-input-method input-method))) | ||
| 45 | 52 | ||
| 46 | ;; If this is a Latin-N character set, set up syntax for it in | 53 | ;; If this is a Latin-N character set, set up syntax for it in |
| 47 | ;; single-byte mode. We can't use require because the file | 54 | ;; single-byte mode. We can't use require because the file |