diff options
| author | Kenichi Handa | 2003-12-03 08:25:25 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-12-03 08:25:25 +0000 |
| commit | 52d8246cbdc4f78bdb71fc5f19e4b802fe24911f (patch) | |
| tree | 78284b307a4fa714f6ff4ceed334e4a72674b1c5 | |
| parent | 1e056d48706ea8547085d42a0544ce2a475e1ccc (diff) | |
| download | emacs-52d8246cbdc4f78bdb71fc5f19e4b802fe24911f.tar.gz emacs-52d8246cbdc4f78bdb71fc5f19e4b802fe24911f.zip | |
Register "microsoft-cp1251" in ctext-non-standard-encodings-alist.
("Bulgarian"): Add ctext-non-standard-encodings.
("Belarusian"): Likewise.
| -rw-r--r-- | lisp/language/cyrillic.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el index ad3ab940492..19ff671834b 100644 --- a/lisp/language/cyrillic.el +++ b/lisp/language/cyrillic.el | |||
| @@ -465,9 +465,17 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 465 | 465 | ||
| 466 | (define-coding-system-alias 'cp1251 'windows-1251) | 466 | (define-coding-system-alias 'cp1251 'windows-1251) |
| 467 | 467 | ||
| 468 | (let ((elt `("microsoft-cp1251" windows-1251 1 | ||
| 469 | ,(get 'encode-windows-1251 'translation-table))) | ||
| 470 | (slot (assoc "microsoft-cp1251" ctext-non-standard-encodings-alist))) | ||
| 471 | (if slot | ||
| 472 | (setcdr slot (cdr elt)) | ||
| 473 | (push elt ctext-non-standard-encodings-alist))) | ||
| 474 | |||
| 468 | (set-language-info-alist | 475 | (set-language-info-alist |
| 469 | "Bulgarian" `((coding-system windows-1251) | 476 | "Bulgarian" `((coding-system windows-1251) |
| 470 | (coding-priority windows-1251) | 477 | (coding-priority windows-1251) |
| 478 | (ctext-non-standard-encodings "microsoft-cp1251") | ||
| 471 | (nonascii-translation | 479 | (nonascii-translation |
| 472 | . ,(get 'decode-windows-1251 'translation-table)) | 480 | . ,(get 'decode-windows-1251 'translation-table)) |
| 473 | (input-method . "bulgarian-bds") | 481 | (input-method . "bulgarian-bds") |
| @@ -479,6 +487,7 @@ Support for Russian using koi8-r and the russian-computer input method.") | |||
| 479 | (set-language-info-alist | 487 | (set-language-info-alist |
| 480 | "Belarusian" `((coding-system windows-1251) | 488 | "Belarusian" `((coding-system windows-1251) |
| 481 | (coding-priority windows-1251) | 489 | (coding-priority windows-1251) |
| 490 | (ctext-non-standard-encodings "microsoft-cp1251") | ||
| 482 | (nonascii-translation | 491 | (nonascii-translation |
| 483 | . ,(get 'decode-windows-1251 'translation-table)) | 492 | . ,(get 'decode-windows-1251 'translation-table)) |
| 484 | (input-method . "belarusian") | 493 | (input-method . "belarusian") |