Mercurial > hg > xemacs-beta
diff lisp/mule/make-coding-system.el @ 5068:c673987f5f3d
dump make-coding-system
-------------------- ChangeLog entries follow: --------------------
lisp/ChangeLog addition:
2010-02-22 Ben Wing <ben@xemacs.org>
* mule/make-coding-system.el:
* mule/make-coding-system.el (fixed-width-generate-helper):
* mule/make-coding-system.el (fixed-width-private-use-start): Removed.
* mule/make-coding-system.el (fixed-width-create-decode-encode-tables):
* coding.el:
* coding.el (decode-char): New.
* coding.el (featurep):
* coding.el (encode-char): New.
* dumped-lisp.el (preloaded-file-list):
Dump make-coding-system. Aidan's hack to avoid dumping this file
never really worked right -- with some configurations (not clear
exactly which ones) `make-coding-system.el' gets dumped anyway due to
calls to `make-coding-system' in unicode.el, with the result that
the documentation of functions in make-coding-system.el gets lost.
Also needed to remove defvar fixed-width-private-use-start and
incorporate it inline, due to bootstrapping issues -- the call to
decode-char introduced a cross-dependency between unicode.el and
make-coding-system.el.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 22 Feb 2010 21:26:18 -0600 |
parents | c69aeb86b2a3 |
children | baffa6ca776a |
line wrap: on
line diff
--- a/lisp/mule/make-coding-system.el Mon Feb 22 21:23:02 2010 -0600 +++ b/lisp/mule/make-coding-system.el Mon Feb 22 21:26:18 2010 -0600 @@ -2,6 +2,7 @@ ;;; much of the implementation of the fixed-width coding system type. ;; Copyright (C) 2009 Free Software Foundation +;; Copyright (C) 2010 Ben Wing. ;; Author: Aidan Kehoe @@ -26,13 +27,6 @@ ;;; Code: -(defvar fixed-width-private-use-start (decode-char 'ucs #xE000) - "Start of a 256 code private use area for fixed-width coding systems. - -This is used to ensure that distinct octets on disk for a given coding -system map to distinct XEmacs characters, preventing spurious changes when -a file is read, not changed, and then written. ") - (defun fixed-width-generate-helper (decode-table encode-table encode-failure-octet) "Helper func, `fixed-width-generate-encode-program-and-skip-chars-strings', @@ -323,7 +317,7 @@ (check-argument-type #'listp unicode-map) (let ((decode-table (make-vector 256 nil)) (encode-table (make-hash-table :size 256 :rehash-threshold 0.999)) - (private-use-start (encode-char fixed-width-private-use-start 'ucs)) + (private-use-start #xE000) (invalid-sequence-code-point-start (eval-when-compile (char-to-unicode