diff options
| author | Dave Love | 2002-05-26 22:45:31 +0000 |
|---|---|---|
| committer | Dave Love | 2002-05-26 22:45:31 +0000 |
| commit | a8692ed88e8e17fdeba19a5dc5d6e29e92bae943 (patch) | |
| tree | c5f7059b0fa0a8d648186bc586a6d2de32e206c3 | |
| parent | 0855c6cdae8e428bfee071aaa97afb770ce6d6bb (diff) | |
| download | emacs-a8692ed88e8e17fdeba19a5dc5d6e29e92bae943.tar.gz emacs-a8692ed88e8e17fdeba19a5dc5d6e29e92bae943.zip | |
(print-coding-system-briefly): Fix
printing aliases.
(print-coding-system): Use coding-system-aliases.
(mule-diag): Don't list coding categories.
| -rw-r--r-- | lisp/international/mule-diag.el | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 60bea2fd41b..45b09eb381f 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -681,7 +681,7 @@ in place of `..': | |||
| 681 | (princ (format "%c -- %s" | 681 | (princ (format "%c -- %s" |
| 682 | (coding-system-mnemonic coding-system) | 682 | (coding-system-mnemonic coding-system) |
| 683 | coding-system)) | 683 | coding-system)) |
| 684 | (let ((aliases (coding-system-get coding-system 'alias-coding-systems))) | 684 | (let ((aliases (coding-system-aliases coding-system))) |
| 685 | (if (eq coding-system (car aliases)) | 685 | (if (eq coding-system (car aliases)) |
| 686 | (if (cdr aliases) | 686 | (if (cdr aliases) |
| 687 | (princ (format " %S" (cons 'alias: (cdr aliases))))) | 687 | (princ (format " %S" (cons 'alias: (cdr aliases))))) |
| @@ -740,6 +740,7 @@ Priority order for recognizing coding systems when reading files:\n") | |||
| 740 | from these, and therefore cannot be recognized automatically | 740 | from these, and therefore cannot be recognized automatically |
| 741 | with the present coding system priorities.\n\n") | 741 | with the present coding system priorities.\n\n") |
| 742 | 742 | ||
| 743 | ;; Fixme: should this be replaced or junked? | ||
| 743 | (if nil | 744 | (if nil |
| 744 | (let ((categories '(coding-category-iso-7 coding-category-iso-7-else)) | 745 | (let ((categories '(coding-category-iso-7 coding-category-iso-7-else)) |
| 745 | coding-system codings) | 746 | coding-system codings) |
| @@ -749,7 +750,6 @@ Priority order for recognizing coding systems when reading files:\n") | |||
| 749 | (function | 750 | (function |
| 750 | (lambda (x) | 751 | (lambda (x) |
| 751 | (if (and (not (eq x coding-system)) | 752 | (if (and (not (eq x coding-system)) |
| 752 | (coding-system-get x 'no-initial-designation) | ||
| 753 | (let ((flags (coding-system-get :flags))) | 753 | (let ((flags (coding-system-get :flags))) |
| 754 | (not (or (memq 'use-roman flags) | 754 | (not (or (memq 'use-roman flags) |
| 755 | (memq 'use-oldjis flags))))) | 755 | (memq 'use-oldjis flags))))) |
| @@ -800,7 +800,7 @@ Priority order for recognizing coding systems when reading files:\n") | |||
| 800 | (let ((type (coding-system-type coding-system)) | 800 | (let ((type (coding-system-type coding-system)) |
| 801 | (eol-type (coding-system-eol-type coding-system)) | 801 | (eol-type (coding-system-eol-type coding-system)) |
| 802 | (flags (coding-system-get coding-system :flags)) | 802 | (flags (coding-system-get coding-system :flags)) |
| 803 | (aliases (coding-system-get coding-system 'alias-coding-systems))) | 803 | (aliases (coding-system-aliases coding-system))) |
| 804 | (if (not (eq (car aliases) coding-system)) | 804 | (if (not (eq (car aliases) coding-system)) |
| 805 | (princ (format "%s (alias of %s)\n" coding-system (car aliases))) | 805 | (princ (format "%s (alias of %s)\n" coding-system (car aliases))) |
| 806 | (princ coding-system) | 806 | (princ coding-system) |
| @@ -913,6 +913,7 @@ but still contains full information about each coding system." | |||
| 913 | (print-coding-system coding-system)) | 913 | (print-coding-system coding-system)) |
| 914 | (setq bases (cdr bases))))) | 914 | (setq bases (cdr bases))))) |
| 915 | 915 | ||
| 916 | ;; Fixme: delete? | ||
| 916 | ;;;###autoload | 917 | ;;;###autoload |
| 917 | (defun list-coding-categories () | 918 | (defun list-coding-categories () |
| 918 | "Display a list of all coding categories." | 919 | "Display a list of all coding categories." |
| @@ -1197,16 +1198,6 @@ system which uses fontsets)." | |||
| 1197 | 1198 | ||
| 1198 | (insert-section 4 "Coding systems") | 1199 | (insert-section 4 "Coding systems") |
| 1199 | (list-coding-systems-1 t) | 1200 | (list-coding-systems-1 t) |
| 1200 | (princ "\ | ||
| 1201 | ############################ | ||
| 1202 | ## LIST OF CODING CATEGORIES (ordered by priority) | ||
| 1203 | ## CATEGORY:CODING-SYSTEM | ||
| 1204 | ## | ||
| 1205 | ") | ||
| 1206 | (let ((l coding-category-list)) | ||
| 1207 | (while l | ||
| 1208 | (princ (format "%s:%s\n" (car l) (symbol-value (car l)))) | ||
| 1209 | (setq l (cdr l)))) | ||
| 1210 | (insert "\n") | 1201 | (insert "\n") |
| 1211 | 1202 | ||
| 1212 | (insert-section 5 "Character sets") | 1203 | (insert-section 5 "Character sets") |