Mercurial > emacs
comparison lisp/international/codepage.el @ 52435:528d8a1b09d5
("mule-diag"): Add eval-after-load
clause.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 04 Sep 2003 16:59:46 +0000 |
parents | 695cf19ef79e |
children | c36561fe0657 |
comparison
equal
deleted
inserted
replaced
52434:14a91089126a | 52435:528d8a1b09d5 |
---|---|
664 (or (and cp-defined ;; avoid defining if already defined | 664 (or (and cp-defined ;; avoid defining if already defined |
665 (coding-system-p cp-defined)) | 665 (coding-system-p cp-defined)) |
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 |
672 ;;; codepage.el ends here | 691 ;;; codepage.el ends here |