aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-06-27 18:40:25 +0000
committerDave Love2002-06-27 18:40:25 +0000
commita6dfc99b260b176870f896c8acd40860ae27a00c (patch)
treea37b62da33e4d7997d5dd8fdbd0e6f953d1268ff
parent513dcb0ac654f6d8120084c766245698d0edd246 (diff)
downloademacs-a6dfc99b260b176870f896c8acd40860ae27a00c.tar.gz
emacs-a6dfc99b260b176870f896c8acd40860ae27a00c.zip
(sort-coding-systems): Comment out
iso-2022 case. (encoded-string-description): Fix coding-system-type test.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/international/mule-cmds.el28
2 files changed, 25 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3383800fbe4..bf889c2dd99 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12002-06-27 Dave Love <fx@gnu.org>
2
3 * international/mule.el (load-with-code-conversion): Fix
4 coding-system-type test.
5
6 * international/mule-cmds.el (sort-coding-systems): Comment out
7 iso-2022 case.
8 (encoded-string-description): Fix coding-system-type test.
9
12002-06-24 Dave Love <fx@gnu.org> 102002-06-24 Dave Love <fx@gnu.org>
2 11
3 * international/characters.el: Make korean-ksc5601 double-width. 12 * international/characters.el: Make korean-ksc5601 double-width.
@@ -6,7 +15,7 @@
6 Emacs 20/1 byte-compiled files. 15 Emacs 20/1 byte-compiled files.
7 16
8 * international/mule-conf.el (file-coding-system-alist): Change 17 * international/mule-conf.el (file-coding-system-alist): Change
9 .elc to utf-8-Emacs. 18 .elc to utf-8-emacs.
10 19
11 * emacs-lisp/bytecomp.el (byte-recompile-directory) 20 * emacs-lisp/bytecomp.el (byte-recompile-directory)
12 (batch-byte-recompile-directory): Update from trunk. 21 (batch-byte-recompile-directory): Update from trunk.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index d885be3dc77..fd2342c09be 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -252,6 +252,7 @@ wrong, use this command again to toggle back to the right mode."
252 "Execute an I/O command using the specified coding system." 252 "Execute an I/O command using the specified coding system."
253 (interactive) 253 (interactive)
254 (let* ((default (and buffer-file-coding-system 254 (let* ((default (and buffer-file-coding-system
255 ;; Fixme: what is t here?
255 (not (eq (coding-system-type buffer-file-coding-system) 256 (not (eq (coding-system-type buffer-file-coding-system)
256 t)) 257 t))
257 buffer-file-coding-system)) 258 buffer-file-coding-system))
@@ -393,18 +394,19 @@ non-nil, it is used to sort CODINGS in the different way than above."
393 (if (memq base lang-preferred) 8 0) 394 (if (memq base lang-preferred) 8 0)
394 (if (string-match "-with-esc$" (symbol-name base)) 395 (if (string-match "-with-esc$" (symbol-name base))
395 0 4) 396 0 4)
396 (if (eq (coding-system-type base) 2) 397;; Fixme: sort out coding-system-spec
397 ;; For ISO based coding systems, prefer 398;; (if (eq (coding-system-type base) 'iso-2022)
398 ;; one that doesn't use escape sequences. 399;; ;; For ISO based coding systems, prefer
399 ;; Fixme: coding-system-spec 400;; ;; one that doesn't use escape sequences.
400 (let* ((extra-spec (coding-system-spec base)) 401;; (let* ((extra-spec (coding-system-spec base))
401 (flags (aref extra-spec 3))) 402;; (flags (aref extra-spec 3)))
402 (if (/= (logand flags #x40) 0) 403;; (if (/= (logand flags #x40) 0)
403 (if (/= (logand flags #x30) 0) 404;; (if (/= (logand flags #x30) 0)
404 0 405;; 0
405 1) 406;; 1)
406 2)) 407;; 2))
407 1))))))) 408;; 1)
409 ))))))
408 (sort codings (function (lambda (x y) 410 (sort codings (function (lambda (x y)
409 (> (funcall func x) (funcall func y)))))))) 411 (> (funcall func x) (funcall func y))))))))
410 412
@@ -2011,7 +2013,7 @@ It can be retrieved with `(get-char-code-property CHAR PROPNAME)'."
2011 "Return a pretty description of STR that is encoded by CODING-SYSTEM." 2013 "Return a pretty description of STR that is encoded by CODING-SYSTEM."
2012 (setq str (string-as-unibyte str)) 2014 (setq str (string-as-unibyte str))
2013 (mapconcat 2015 (mapconcat
2014 (if (and coding-system (eq (coding-system-type coding-system) 2)) 2016 (if (and coding-system (eq (coding-system-type coding-system) 'iso-2022))
2015 ;; Try to get a pretty description for ISO 2022 escape sequences. 2017 ;; Try to get a pretty description for ISO 2022 escape sequences.
2016 (function (lambda (x) (or (cdr (assq x iso-2022-control-alist)) 2018 (function (lambda (x) (or (cdr (assq x iso-2022-control-alist))
2017 (format "%02X" x)))) 2019 (format "%02X" x))))