]> git.eshelyaron.com Git - emacs.git/commitdiff
Register koi8-r in
authorKenichi Handa <handa@m17n.org>
Wed, 18 Aug 2004 08:53:21 +0000 (08:53 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 18 Aug 2004 08:53:21 +0000 (08:53 +0000)
ctext-non-standard-encodings-alist.
("Cyrillic-KOI8"): Add ctext-non-standard-encoding.

lisp/language/cyrillic.el

index dc05f24698ab2e1fdbfda74aec1f529570f81a5b..302929a116b0b54c430267491a7dee7d7e033716 100644 (file)
@@ -186,6 +186,13 @@ This works whether or not the table is Unicode-based or
 (define-coding-system-alias 'koi8 'cyrillic-koi8)
 (define-coding-system-alias 'cp878 'cyrillic-koi8)
 
+(let ((elt `("koi8-r" koi8-r 1
+            ,(get 'cyrillic-koi8-r-encode-table 'translation-table)))
+      (slot (assoc "koi8-r" ctext-non-standard-encodings-alist)))
+  (if slot
+      (setcdr slot (cdr elt))
+    (push elt ctext-non-standard-encodings-alist)))
+
 ;; Allow displaying some of KOI & al with an 8859-5-encoded font.  We
 ;; won't bother about the exceptions when encoding the font, since
 ;; 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
                            'translation-table))
                   (coding-system cyrillic-koi8)
                   (coding-priority cyrillic-koi8 cyrillic-iso-8bit)
+                  (ctext-non-standard-encoding "koi8-r")
                   (input-method . "russian-typewriter")
                   (features cyril-util)
                   (unibyte-display . cyrillic-koi8)