diff options
| author | Juanma Barranquero | 2008-12-04 15:23:54 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-12-04 15:23:54 +0000 |
| commit | 18f515e428dfb9dc15ec89f6c7e7ef0c92eb711a (patch) | |
| tree | ad35a8aa1066d5cdc5dda9919898f4563e35af07 | |
| parent | f70eb806e6098baa63c843d56372de9ea30e42f2 (diff) | |
| download | emacs-18f515e428dfb9dc15ec89f6c7e7ef0c92eb711a.tar.gz emacs-18f515e428dfb9dc15ec89f6c7e7ef0c92eb711a.zip | |
* international/mule-diag.el (list-character-sets): Doc fix.
(list-character-sets-2): Fix info in header. Simplify.
(print-coding-system): Simplify.
(list-input-methods-1): Simplify.
(mule-diag): Display current font/fontset for all window systems,
not just X. Simplify.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/international/mule-diag.el | 59 |
2 files changed, 33 insertions, 35 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0a37cb343fe..97f20b906eb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-12-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * international/mule-diag.el (list-character-sets): Doc fix. | ||
| 4 | (list-character-sets-2): Fix info in header. Simplify. | ||
| 5 | (print-coding-system): Simplify. | ||
| 6 | (list-input-methods-1): Simplify. | ||
| 7 | (mule-diag): Display current font/fontset for all window systems, | ||
| 8 | not just X. Simplify. | ||
| 9 | |||
| 1 | 2008-12-04 Glenn Morris <rgm@gnu.org> | 10 | 2008-12-04 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * vc-cvs.el (vc-cvs-register-switches): Doc fix. Add t as option. | 12 | * vc-cvs.el (vc-cvs-register-switches): Doc fix. Add t as option. |
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index f47602c0915..b0cad2118b9 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -63,7 +63,7 @@ column contains the number of characters in a block of this character | |||
| 63 | set. The FINAL-CHAR column contains an ISO-2022 <final-char> to use | 63 | set. The FINAL-CHAR column contains an ISO-2022 <final-char> to use |
| 64 | for designating this character set in ISO-2022-based coding systems. | 64 | for designating this character set in ISO-2022-based coding systems. |
| 65 | 65 | ||
| 66 | With prefix arg, the output format gets more cryptic, | 66 | With prefix ARG, the output format gets more cryptic, |
| 67 | but still shows the full information." | 67 | but still shows the full information." |
| 68 | (interactive "P") | 68 | (interactive "P") |
| 69 | (help-setup-xref (list #'list-character-sets arg) (interactive-p)) | 69 | (help-setup-xref (list #'list-character-sets arg) (interactive-p)) |
| @@ -175,25 +175,22 @@ SORT-KEY should be `name' or `iso-spec' (default `name')." | |||
| 175 | ## The following attributes are listed in this order | 175 | ## The following attributes are listed in this order |
| 176 | ## separated by a colon `:' in one line. | 176 | ## separated by a colon `:' in one line. |
| 177 | ## CHARSET-SYMBOL-NAME, | 177 | ## CHARSET-SYMBOL-NAME, |
| 178 | ## DIMENSION (1 or 2) | 178 | ## DIMENSION (1-4) |
| 179 | ## CHARS (94 or 96) | 179 | ## CHARS (number of characters in first dimension of charset) |
| 180 | ## ISO-FINAL-CHAR (character code of ISO-2022's final character) | 180 | ## ISO-FINAL-CHAR (character code of ISO-2022's final character) |
| 181 | ## -1 means that no final character is assigned. | 181 | ## -1 means that no final character is assigned. |
| 182 | ## DESCRIPTION (describing string of the charset) | 182 | ## DESCRIPTION (describing string of the charset) |
| 183 | ") | 183 | ") |
| 184 | (let ((l charset-list) | 184 | (dolist (charset charset-list) |
| 185 | charset) | 185 | (princ (format "%s:%d:%d:%d:%s\n" |
| 186 | (while l | 186 | charset |
| 187 | (setq charset (car l) l (cdr l)) | 187 | (charset-dimension charset) |
| 188 | (princ (format "%s:%d:%d:%d:%s\n" | 188 | (charset-chars charset) |
| 189 | charset | 189 | ;;; (char-width (make-char charset)) |
| 190 | (charset-dimension charset) | 190 | ;;; (charset-direction charset) |
| 191 | (charset-chars charset) | 191 | (charset-iso-final-char charset) |
| 192 | ;;; (char-width (make-char charset)) | 192 | ;;; (charset-iso-graphic-plane charset) |
| 193 | ;;; (charset-direction charset) | 193 | (charset-description charset))))) |
| 194 | (charset-iso-final-char charset) | ||
| 195 | ;;; (charset-iso-graphic-plane charset) | ||
| 196 | (charset-description charset)))))) | ||
| 197 | 194 | ||
| 198 | (defvar non-iso-charset-alist nil | 195 | (defvar non-iso-charset-alist nil |
| 199 | "Obsolete.") | 196 | "Obsolete.") |
| @@ -690,11 +687,9 @@ Priority order for recognizing coding systems when reading files:\n") | |||
| 690 | (if (not (eq (car aliases) coding-system)) | 687 | (if (not (eq (car aliases) coding-system)) |
| 691 | (princ (format "%s (alias of %s)\n" coding-system (car aliases))) | 688 | (princ (format "%s (alias of %s)\n" coding-system (car aliases))) |
| 692 | (princ coding-system) | 689 | (princ coding-system) |
| 693 | (setq aliases (cdr aliases)) | 690 | (dolist (alias (cdr aliases)) |
| 694 | (while aliases | ||
| 695 | (princ ",") | 691 | (princ ",") |
| 696 | (princ (car aliases)) | 692 | (princ alias)) |
| 697 | (setq aliases (cdr aliases))) | ||
| 698 | (princ (format ":%s:%c:%d:" | 693 | (princ (format ":%s:%c:%d:" |
| 699 | type | 694 | type |
| 700 | (coding-system-mnemonic coding-system) | 695 | (coding-system-mnemonic coding-system) |
| @@ -997,19 +992,17 @@ see the function `describe-fontset' for the format of the list." | |||
| 997 | 992 | ||
| 998 | (defun list-input-methods-1 () | 993 | (defun list-input-methods-1 () |
| 999 | (if (not input-method-alist) | 994 | (if (not input-method-alist) |
| 1000 | (progn | 995 | (princ " |
| 1001 | (princ " | ||
| 1002 | No input method is available, perhaps because you have not | 996 | No input method is available, perhaps because you have not |
| 1003 | installed LEIM (Libraries of Emacs Input Methods).")) | 997 | installed LEIM (Libraries of Emacs Input Methods).") |
| 1004 | (princ "LANGUAGE\n NAME (`TITLE' in mode line)\n") | 998 | (princ "LANGUAGE\n NAME (`TITLE' in mode line)\n") |
| 1005 | (princ " SHORT-DESCRIPTION\n------------------------------\n") | 999 | (princ " SHORT-DESCRIPTION\n------------------------------\n") |
| 1006 | (setq input-method-alist | 1000 | (setq input-method-alist |
| 1007 | (sort input-method-alist | 1001 | (sort input-method-alist |
| 1008 | (lambda (x y) (string< (nth 1 x) (nth 1 y))))) | 1002 | (lambda (x y) (string< (nth 1 x) (nth 1 y))))) |
| 1009 | (let ((l input-method-alist) | 1003 | |
| 1010 | language elt) | 1004 | (let (language) |
| 1011 | (while l | 1005 | (dolist (elt input-method-alist) |
| 1012 | (setq elt (car l) l (cdr l)) | ||
| 1013 | (when (not (equal language (nth 1 elt))) | 1006 | (when (not (equal language (nth 1 elt))) |
| 1014 | (setq language (nth 1 elt)) | 1007 | (setq language (nth 1 elt)) |
| 1015 | (princ language) | 1008 | (princ language) |
| @@ -1020,9 +1013,7 @@ installed LEIM (Libraries of Emacs Input Methods).")) | |||
| 1020 | (if (and (consp title) (stringp (car title))) | 1013 | (if (and (consp title) (stringp (car title))) |
| 1021 | (car title) | 1014 | (car title) |
| 1022 | title)) | 1015 | title)) |
| 1023 | (let ((description (nth 4 elt))) | 1016 | (nth 4 elt))))))) |
| 1024 | (string-match ".*" description) | ||
| 1025 | (match-string 0 description)))))))) | ||
| 1026 | 1017 | ||
| 1027 | ;;; DIAGNOSIS | 1018 | ;;; DIAGNOSIS |
| 1028 | 1019 | ||
| @@ -1072,7 +1063,7 @@ system which uses fontsets)." | |||
| 1072 | (insert "Terminal: " (getenv "TERM"))) | 1063 | (insert "Terminal: " (getenv "TERM"))) |
| 1073 | (insert "\n\n") | 1064 | (insert "\n\n") |
| 1074 | 1065 | ||
| 1075 | (if (eq window-system 'x) | 1066 | (if window-system |
| 1076 | (let ((font (cdr (assq 'font (frame-parameters))))) | 1067 | (let ((font (cdr (assq 'font (frame-parameters))))) |
| 1077 | (insert "The selected frame is using the " | 1068 | (insert "The selected frame is using the " |
| 1078 | (if (query-fontset font) "fontset" "font") | 1069 | (if (query-fontset font) "fontset" "font") |
| @@ -1101,10 +1092,8 @@ system which uses fontsets)." | |||
| 1101 | (insert-section 6 "Fontsets") | 1092 | (insert-section 6 "Fontsets") |
| 1102 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") | 1093 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") |
| 1103 | (insert "------------\t\t\t\t\t\t ----- -----\n") | 1094 | (insert "------------\t\t\t\t\t\t ----- -----\n") |
| 1104 | (let ((fontsets (fontset-list))) | 1095 | (dolist (fontset (fontset-list)) |
| 1105 | (while fontsets | 1096 | (print-fontset fontset t))) |
| 1106 | (print-fontset (car fontsets) t) | ||
| 1107 | (setq fontsets (cdr fontsets))))) | ||
| 1108 | (print-help-return-message)))) | 1097 | (print-help-return-message)))) |
| 1109 | 1098 | ||
| 1110 | ;;;###autoload | 1099 | ;;;###autoload |