]> git.eshelyaron.com Git - emacs.git/commitdiff
(sort-coding-systems): Comment out
authorDave Love <fx@gnu.org>
Thu, 27 Jun 2002 18:40:25 +0000 (18:40 +0000)
committerDave Love <fx@gnu.org>
Thu, 27 Jun 2002 18:40:25 +0000 (18:40 +0000)
iso-2022 case.
(encoded-string-description): Fix coding-system-type test.

lisp/ChangeLog
lisp/international/mule-cmds.el

index 3383800fbe411b18f5148b9ac35c5aa48da373d2..bf889c2dd99231d81bd9fe9cdc23e38b894edab3 100644 (file)
@@ -1,3 +1,12 @@
+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.
@@ -6,7 +15,7 @@
        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.
index d885be3dc779db31ba05ed3b05035e120301dd37..fd2342c09bec7e562b80b52e4fcb72dd09de6898 100644 (file)
@@ -252,6 +252,7 @@ wrong, use this command again to toggle back to the right mode."
   "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))
@@ -393,18 +394,19 @@ non-nil, it is used to sort CODINGS in the different way than above."
                         (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))))))))
 
@@ -2011,7 +2013,7 @@ It can be retrieved with `(get-char-code-property CHAR PROPNAME)'."
   "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))))