diff options
| author | Kenichi Handa | 2004-08-18 08:53:21 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-08-18 08:53:21 +0000 |
| commit | 7be5dbd48ee3352bae791560fa259e0a70efb5fe (patch) | |
| tree | fc2ab546d26e4da588fe501e80e0c6343295780c /lisp | |
| parent | eacd5edcd3f50db44271fae73dce8949ceb47ca8 (diff) | |
| download | emacs-7be5dbd48ee3352bae791560fa259e0a70efb5fe.tar.gz emacs-7be5dbd48ee3352bae791560fa259e0a70efb5fe.zip | |
Register koi8-r in
ctext-non-standard-encodings-alist.
("Cyrillic-KOI8"): Add ctext-non-standard-encoding.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/language/cyrillic.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index dc05f24698a..302929a116b 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -186,6 +186,13 @@ This works whether or not the table is Unicode-based or | |||
| 186 | (define-coding-system-alias 'koi8 'cyrillic-koi8) | 186 | (define-coding-system-alias 'koi8 'cyrillic-koi8) |
| 187 | (define-coding-system-alias 'cp878 'cyrillic-koi8) | 187 | (define-coding-system-alias 'cp878 'cyrillic-koi8) |
| 188 | 188 | ||
| 189 | (let ((elt `("koi8-r" koi8-r 1 | ||
| 190 | ,(get 'cyrillic-koi8-r-encode-table 'translation-table))) | ||
| 191 | (slot (assoc "koi8-r" ctext-non-standard-encodings-alist))) | ||
| 192 | (if slot | ||
| 193 | (setcdr slot (cdr elt)) | ||
| 194 | (push elt ctext-non-standard-encodings-alist))) | ||
| 195 | |||
| 189 | ;; Allow displaying some of KOI & al with an 8859-5-encoded font. We | 196 | ;; Allow displaying some of KOI & al with an 8859-5-encoded font. We |
| 190 | ;; won't bother about the exceptions when encoding the font, since | 197 | ;; won't bother about the exceptions when encoding the font, since |
| 191 | ;; NBSP will fall through below and work anyhow, and we'll have | 198 | ;; NBSP will fall through below and work anyhow, and we'll have |
| @@ -219,6 +226,7 @@ This works whether or not the table is Unicode-based or | |||
| 219 | 'translation-table)) | 226 | 'translation-table)) |
| 220 | (coding-system cyrillic-koi8) | 227 | (coding-system cyrillic-koi8) |
| 221 | (coding-priority cyrillic-koi8 cyrillic-iso-8bit) | 228 | (coding-priority cyrillic-koi8 cyrillic-iso-8bit) |
| 229 | (ctext-non-standard-encoding "koi8-r") | ||
| 222 | (input-method . "russian-typewriter") | 230 | (input-method . "russian-typewriter") |
| 223 | (features cyril-util) | 231 | (features cyril-util) |
| 224 | (unibyte-display . cyrillic-koi8) | 232 | (unibyte-display . cyrillic-koi8) |