aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-09-10 17:37:38 +0000
committerDave Love2002-09-10 17:37:38 +0000
commit1deeaf1d3027abb2e16cd486912bef9e3852c8ca (patch)
tree6af0d686e7fcd1e559fe859251afeba3549a913c
parent3e6be27948c7b5b5ed213297450bccc47e0d4eec (diff)
downloademacs-1deeaf1d3027abb2e16cd486912bef9e3852c8ca.tar.gz
emacs-1deeaf1d3027abb2e16cd486912bef9e3852c8ca.zip
(utf-16-le-pre-write-conversion)
(utf-16-be-pre-write-conversion): Deleted. (mule-utf-16-le, mule-utf-16-be): Register encoding translation table.
-rw-r--r--lisp/international/utf-16.el20
1 files changed, 3 insertions, 17 deletions
diff --git a/lisp/international/utf-16.el b/lisp/international/utf-16.el
index 947fb336318..7786795f4a5 100644
--- a/lisp/international/utf-16.el
+++ b/lisp/international/utf-16.el
@@ -206,22 +206,6 @@ Others are encoded as U+FFFD.")
206 206
207(makunbound 'utf-16-decode-to-ucs) 207(makunbound 'utf-16-decode-to-ucs)
208 208
209(defun utf-16-le-pre-write-conversion (beg end)
210 "Semi-dummy pre-write function effectively to autoload ucs-tables."
211 ;; Ensure translation table is loaded.
212 (require 'ucs-tables)
213 ;; Don't do this again.
214 (coding-system-put 'mule-utf-16-le 'pre-write-conversion nil)
215 nil)
216
217(defun utf-16-be-pre-write-conversion (beg end)
218 "Semi-dummy pre-write function effectively to autoload ucs-tables."
219 ;; Ensure translation table is loaded.
220 (require 'ucs-tables)
221 ;; Don't do this again.
222 (coding-system-put 'mule-utf-16-be 'pre-write-conversion nil)
223 nil)
224
225(let ((doc " 209(let ((doc "
226 210
227Assumes and ignores the leading two-byte signature. 211Assumes and ignores the leading two-byte signature.
@@ -278,7 +262,9 @@ are encoded as U+FFFD."))
278 (coding-category . coding-category-utf-16-be) 262 (coding-category . coding-category-utf-16-be)
279 (valid-codes (0 . 255)) 263 (valid-codes (0 . 255))
280 (pre-write-conversion . utf-16-be-pre-write-conversion))) 264 (pre-write-conversion . utf-16-be-pre-write-conversion)))
281 ) 265
266 (register-char-codings 'mule-utf-16-le ucs-mule-to-mule-unicode)
267 (register-char-codings 'mule-utf-16-be ucs-mule-to-mule-unicode))
282 268
283(define-coding-system-alias 'utf-16-le 'mule-utf-16-le) 269(define-coding-system-alias 'utf-16-le 'mule-utf-16-le)
284(define-coding-system-alias 'utf-16-be 'mule-utf-16-be) 270(define-coding-system-alias 'utf-16-be 'mule-utf-16-be)