diff options
| author | Dave Love | 2003-09-04 16:59:46 +0000 |
|---|---|---|
| committer | Dave Love | 2003-09-04 16:59:46 +0000 |
| commit | 2c3245ae7a5d692ce1adefc92daed49d61c9e937 (patch) | |
| tree | 5a6742d4a9887ccb85b38097e6cdeef9d1d5f014 | |
| parent | cbdea07b9ddba2c2c31391814bf5b687ceba5aec (diff) | |
| download | emacs-2c3245ae7a5d692ce1adefc92daed49d61c9e937.tar.gz emacs-2c3245ae7a5d692ce1adefc92daed49d61c9e937.zip | |
("mule-diag"): Add eval-after-load
clause.
| -rw-r--r-- | lisp/international/codepage.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lisp/international/codepage.el b/lisp/international/codepage.el index fabf4fdd6ac..c94b2798f59 100644 --- a/lisp/international/codepage.el +++ b/lisp/international/codepage.el | |||
| @@ -666,6 +666,25 @@ read/written by MS-DOS software, or for display on the MS-DOS terminal." | |||
| 666 | (cp-make-coding-systems-for-codepage | 666 | (cp-make-coding-systems-for-codepage |
| 667 | cp (cp-charset-for-codepage cp) (cp-offset-for-codepage cp))))) | 667 | cp (cp-charset-for-codepage cp) (cp-offset-for-codepage cp))))) |
| 668 | 668 | ||
| 669 | ;; Add DOS codepages to `non-iso-charset-alist'. | ||
| 670 | (eval-after-load "mule-diag" | ||
| 671 | '(let ((tail (cp-supported-codepages)) | ||
| 672 | elt) | ||
| 673 | (while tail | ||
| 674 | (setq elt (car tail) tail (cdr tail)) | ||
| 675 | ;; Now ELT is (CODEPAGE . CHARSET), where CODEPAGE is a string | ||
| 676 | ;; (e.g. "850"), CHARSET is a charset that characters in CODEPAGE | ||
| 677 | ;; are mapped to. | ||
| 678 | (unless (assq (intern (concat "cp" (car elt))) non-iso-charset-alist) | ||
| 679 | (setq non-iso-charset-alist | ||
| 680 | (cons (list (intern (concat "cp" (car elt))) | ||
| 681 | (list 'ascii (cdr elt)) | ||
| 682 | `(lambda (code) | ||
| 683 | (decode-codepage-char ,(string-to-int (car elt)) | ||
| 684 | code)) | ||
| 685 | (list (list 0 255))) | ||
| 686 | non-iso-charset-alist)))))) | ||
| 687 | |||
| 669 | (provide 'codepage) | 688 | (provide 'codepage) |
| 670 | 689 | ||
| 671 | ;;; arch-tag: 80328de8-b94e-4386-be26-5876105731f0 | 690 | ;;; arch-tag: 80328de8-b94e-4386-be26-5876105731f0 |