diff options
| -rw-r--r-- | lisp/international/mule-diag.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index c4280c7928c..78178093921 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -905,7 +905,7 @@ but still contains full information about each coding system." | |||
| 905 | (defun describe-font (fontname) | 905 | (defun describe-font (fontname) |
| 906 | "Display information about fonts which partially match FONTNAME." | 906 | "Display information about fonts which partially match FONTNAME." |
| 907 | (interactive "sFontname (default, current choice for ASCII chars): ") | 907 | (interactive "sFontname (default, current choice for ASCII chars): ") |
| 908 | (or (and window-system (boundp 'global-fontset-alist)) | 908 | (or (and window-system (fboundp 'fontset-list)) |
| 909 | (error "No fontsets being used")) | 909 | (error "No fontsets being used")) |
| 910 | (when (or (not fontname) (= (length fontname) 0)) | 910 | (when (or (not fontname) (= (length fontname) 0)) |
| 911 | (setq fontname (cdr (assq 'font (frame-parameters)))) | 911 | (setq fontname (cdr (assq 'font (frame-parameters)))) |
| @@ -946,7 +946,7 @@ but still contains full information about each coding system." | |||
| 946 | (beginning-of-line) | 946 | (beginning-of-line) |
| 947 | (insert fontset) | 947 | (insert fontset) |
| 948 | (indent-to 58) | 948 | (indent-to 58) |
| 949 | (insert (if (> size 0) (format "%2dx%d" size height) " -")) | 949 | (insert (if (and size (> size 0)) (format "%2dx%d" size height) " -")) |
| 950 | (indent-to 64) | 950 | (indent-to 64) |
| 951 | (insert style "\n") | 951 | (insert style "\n") |
| 952 | (when print-fonts | 952 | (when print-fonts |
| @@ -988,7 +988,7 @@ The O column for each font contains one of the following letters: | |||
| 988 | The Charset column for each font contains a name of character set | 988 | The Charset column for each font contains a name of character set |
| 989 | displayed (for this fontset) using that font." | 989 | displayed (for this fontset) using that font." |
| 990 | (interactive | 990 | (interactive |
| 991 | (if (not (and window-system (boundp 'global-fontset-alist))) | 991 | (if (not (and window-system (fboundp 'fontset-list))) |
| 992 | (error "No fontsets being used") | 992 | (error "No fontsets being used") |
| 993 | (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))) | 993 | (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))) |
| 994 | (completion-ignore-case t)) | 994 | (completion-ignore-case t)) |
| @@ -1014,7 +1014,7 @@ This shows the name, size, and style of each fontset. | |||
| 1014 | With prefix arg, it also list the fonts contained in each fontset; | 1014 | With prefix arg, it also list the fonts contained in each fontset; |
| 1015 | see the function `describe-fontset' for the format of the list." | 1015 | see the function `describe-fontset' for the format of the list." |
| 1016 | (interactive "P") | 1016 | (interactive "P") |
| 1017 | (if (not (and window-system (boundp 'global-fontset-alist))) | 1017 | (if (not (and window-system (fboundp 'fontset-list))) |
| 1018 | (error "No fontsets being used") | 1018 | (error "No fontsets being used") |
| 1019 | (with-output-to-temp-buffer "*Help*" | 1019 | (with-output-to-temp-buffer "*Help*" |
| 1020 | (save-excursion | 1020 | (save-excursion |
| @@ -1101,7 +1101,7 @@ system which uses fontsets)." | |||
| 1101 | " Section 3. Input methods\n" | 1101 | " Section 3. Input methods\n" |
| 1102 | " Section 4. Coding systems\n" | 1102 | " Section 4. Coding systems\n" |
| 1103 | " Section 5. Character sets\n") | 1103 | " Section 5. Character sets\n") |
| 1104 | (if (and window-system (boundp 'global-fontset-alist)) | 1104 | (if (and window-system (fboundp 'fontset-list)) |
| 1105 | (insert " Section 6. Fontsets\n")) | 1105 | (insert " Section 6. Fontsets\n")) |
| 1106 | (insert "\n") | 1106 | (insert "\n") |
| 1107 | 1107 | ||
| @@ -1150,7 +1150,7 @@ system which uses fontsets)." | |||
| 1150 | (list-character-sets-2) | 1150 | (list-character-sets-2) |
| 1151 | (insert "\n") | 1151 | (insert "\n") |
| 1152 | 1152 | ||
| 1153 | (when (and window-system (boundp 'global-fontset-alist)) | 1153 | (when (and window-system (fboundp 'fontset-list)) |
| 1154 | ;; This code duplicates most of list-fontsets. | 1154 | ;; This code duplicates most of list-fontsets. |
| 1155 | (insert-section 6 "Fontsets") | 1155 | (insert-section 6 "Fontsets") |
| 1156 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") | 1156 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") |