+2002-06-27 Dave Love <fx@gnu.org>
+
+ * international/mule.el (load-with-code-conversion): Fix
+ coding-system-type test.
+
+ * international/mule-cmds.el (sort-coding-systems): Comment out
+ iso-2022 case.
+ (encoded-string-description): Fix coding-system-type test.
+
2002-06-24 Dave Love <fx@gnu.org>
* international/characters.el: Make korean-ksc5601 double-width.
Emacs 20/1 byte-compiled files.
* international/mule-conf.el (file-coding-system-alist): Change
- .elc to utf-8-Emacs.
+ .elc to utf-8-emacs.
* emacs-lisp/bytecomp.el (byte-recompile-directory)
(batch-byte-recompile-directory): Update from trunk.
"Execute an I/O command using the specified coding system."
(interactive)
(let* ((default (and buffer-file-coding-system
+ ;; Fixme: what is t here?
(not (eq (coding-system-type buffer-file-coding-system)
t))
buffer-file-coding-system))
(if (memq base lang-preferred) 8 0)
(if (string-match "-with-esc$" (symbol-name base))
0 4)
- (if (eq (coding-system-type base) 2)
- ;; For ISO based coding systems, prefer
- ;; one that doesn't use escape sequences.
- ;; Fixme: coding-system-spec
- (let* ((extra-spec (coding-system-spec base))
- (flags (aref extra-spec 3)))
- (if (/= (logand flags #x40) 0)
- (if (/= (logand flags #x30) 0)
- 0
- 1)
- 2))
- 1)))))))
+;; Fixme: sort out coding-system-spec
+;; (if (eq (coding-system-type base) 'iso-2022)
+;; ;; For ISO based coding systems, prefer
+;; ;; one that doesn't use escape sequences.
+;; (let* ((extra-spec (coding-system-spec base))
+;; (flags (aref extra-spec 3)))
+;; (if (/= (logand flags #x40) 0)
+;; (if (/= (logand flags #x30) 0)
+;; 0
+;; 1)
+;; 2))
+;; 1)
+ ))))))
(sort codings (function (lambda (x y)
(> (funcall func x) (funcall func y))))))))
"Return a pretty description of STR that is encoded by CODING-SYSTEM."
(setq str (string-as-unibyte str))
(mapconcat
- (if (and coding-system (eq (coding-system-type coding-system) 2))
+ (if (and coding-system (eq (coding-system-type coding-system) 'iso-2022))
;; Try to get a pretty description for ISO 2022 escape sequences.
(function (lambda (x) (or (cdr (assq x iso-2022-control-alist))
(format "%02X" x))))