diff lisp/international/mule-diag.el @ 46490:e541dfaa4964

(print-coding-system-briefly): Fix the handling of an alias of which eol-type is not auto-detection.
author Kenichi Handa <handa@m17n.org>
date Wed, 17 Jul 2002 08:45:28 +0000
parents 9f98a97f5469
children 698b4a4bb562
line wrap: on
line diff
--- a/lisp/international/mule-diag.el	Wed Jul 17 08:44:58 2002 +0000
+++ b/lisp/international/mule-diag.el	Wed Jul 17 08:45:28 2002 +0000
@@ -720,11 +720,19 @@
 		   (coding-system-mnemonic coding-system)
 		   coding-system))
     (let ((aliases (coding-system-get coding-system 'alias-coding-systems)))
-      (if (eq coding-system (car aliases))
-	  (if (cdr aliases)
-	      (princ (format " %S" (cons 'alias: (cdr aliases)))))
-	(if (memq coding-system aliases)
-	    (princ (format " (alias of %s)" (car aliases))))))
+      (cond ((eq coding-system (car aliases))
+	     (if (cdr aliases)
+		 (princ (format " %S" (cons 'alias: (cdr aliases))))))
+	    ((memq coding-system aliases)
+	     (princ (format " (alias of %s)" (car aliases))))
+	    (t
+	     (let ((eol-type (coding-system-eol-type coding-system))
+		   (base-eol-type (coding-system-eol-type (car aliases))))
+	       (if (and (integerp eol-type)
+			(vectorp base-eol-type)
+			(not (eq coding-system (aref base-eol-type eol-type))))
+		   (princ (format " (alias of %s)"
+				  (aref base-eol-type eol-type))))))))
     (princ "\n\n")
     (if (and doc-string
 	     (setq doc-string (coding-system-doc-string coding-system)))