aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/nxml/nxml-enc.el23
2 files changed, 5 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 725ca428d3a..1062ce59fa2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-11-13 Glenn Morris <rgm@gnu.org>
2
3 * nxml/nxml-enc.el: Remove some charset code not needed since Emacs 22.
4
12008-11-13 Henry Weller <hweller0@gmail.com> (tiny change) 52008-11-13 Henry Weller <hweller0@gmail.com> (tiny change)
2 6
3 * net/mairix.el (mairix-widget-fields-list): Fix bug regarding searching 7 * net/mairix.el (mairix-widget-fields-list): Fix bug regarding searching
diff --git a/lisp/nxml/nxml-enc.el b/lisp/nxml/nxml-enc.el
index 26d028becf4..5890f1c0e57 100644
--- a/lisp/nxml/nxml-enc.el
+++ b/lisp/nxml/nxml-enc.el
@@ -139,32 +139,11 @@ Applied to any files that `auto-mode-alist' says should be handled by
139 (setq set-auto-coding-function nxml-non-xml-set-auto-coding-function) 139 (setq set-auto-coding-function nxml-non-xml-set-auto-coding-function)
140 (setq nxml-non-xml-set-auto-coding-function nil)))) 140 (setq nxml-non-xml-set-auto-coding-function nil))))
141 141
142(unless (coding-system-p 'us-ascii) 142;; Emacs 22 makes us-ascii an alias for iso-safe without
143 (make-coding-system
144 ;; Unicode Emacs uses ?- last time I looked
145 'us-ascii 2 ?-
146 "ISO 2022 based 7-bit encoding for ASCII (MIME:US-ASCII)"
147 '(ascii)
148 '((safe-charsets ascii)
149 (mime-charset . us-ascii))))
150
151;; Emacs 21.3.50 makes us-ascii an alias for iso-safe without
152;; giving it a mime-charset property. 143;; giving it a mime-charset property.
153(unless (coding-system-get 'us-ascii 'mime-charset) 144(unless (coding-system-get 'us-ascii 'mime-charset)
154 (coding-system-put 'us-ascii 'mime-charset 'us-ascii)) 145 (coding-system-put 'us-ascii 'mime-charset 'us-ascii))
155 146
156;; Work around bug in Emacs 21.3
157
158(when (and (coding-system-p 'utf-16-le)
159 (eq (coding-system-get 'utf-16-le 'pre-write-conversion)
160 'utf-16-le-pre-write-conversion))
161 (coding-system-put 'utf-16-le 'pre-write-conversion nil))
162
163(when (and (coding-system-p 'utf-16-le)
164 (eq (coding-system-get 'utf-16-be 'pre-write-conversion)
165 'utf-16-be-pre-write-conversion))
166 (coding-system-put 'utf-16-be 'pre-write-conversion nil))
167
168(provide 'nxml-enc) 147(provide 'nxml-enc)
169 148
170;; arch-tag: c2436247-78f3-418c-8069-85dc5335d083 149;; arch-tag: c2436247-78f3-418c-8069-85dc5335d083