comparison lisp/international/code-pages.el @ 48753:d9e64bc9e308

(mule-diag): Move where it's required.
author Dave Love <fx@gnu.org>
date Sun, 08 Dec 2002 19:12:07 +0000
parents b928795a85d8
children c41c265141e2
comparison
equal deleted inserted replaced
48752:a2724f1976f3 48753:d9e64bc9e308
51 ;; Although the tables used here aren't very big, it might be worth 51 ;; Although the tables used here aren't very big, it might be worth
52 ;; splitting the file and autoloading the coding systems if/when my 52 ;; splitting the file and autoloading the coding systems if/when my
53 ;; (or similar) autoloading code is installed. 53 ;; (or similar) autoloading code is installed.
54 54
55 ;;; Code: 55 ;;; Code:
56
57 (require 'mule-diag) ; for non-iso-charset-alist
58 56
59 (defun cp-make-translation-table (v) 57 (defun cp-make-translation-table (v)
60 "Return a translation table made from 128-long vector V. 58 "Return a translation table made from 128-long vector V.
61 V comprises characters encodable by mule-utf-8." 59 V comprises characters encodable by mule-utf-8."
62 (let ((encoding-vector (make-vector 256 0))) 60 (let ((encoding-vector (make-vector 256 0)))
149 (let ((cp (format "cp%s" codepage))) 147 (let ((cp (format "cp%s" codepage)))
150 (unless (coding-system-p (intern cp)) 148 (unless (coding-system-p (intern cp))
151 (cp-make-coding-systems-for-codepage 149 (cp-make-coding-systems-for-codepage
152 cp (cp-charset-for-codepage cp) (cp-offset-for-codepage cp)))))) 150 cp (cp-charset-for-codepage cp) (cp-offset-for-codepage cp))))))
153 ) ; eval-after-load 151 ) ; eval-after-load
152
153 ;; For `non-iso-charset-alist'. Do this after redefining
154 ;; `cp-supported-codepages', which is called through loading
155 ;; mule-diag.
156 (require 'mule-diag)
154 157
155 ;; Macro to allow ccl compilation at byte-compile time, avoiding 158 ;; Macro to allow ccl compilation at byte-compile time, avoiding
156 ;; loading ccl. 159 ;; loading ccl.
157 ;;;###autoload 160 ;;;###autoload
158 (defmacro cp-make-coding-system (name v &optional doc-string mnemonic) 161 (defmacro cp-make-coding-system (name v &optional doc-string mnemonic)