# HG changeset patch # User Kenichi Handa # Date 953598754 0 # Node ID cad26a9da36b480f20ed46fd5bec91bbf23fd260 # Parent ceaded4c2cb90b3df4c09e1a16a0e51f7f35f64a (describe-font): Don't refer to global-fontset-alist, instead call font-list. (describe-fontset, list-fontsets, mule-diag): Likewise. (print-fontset): Adjusted for the change of fontset implementation. diff -r ceaded4c2cb9 -r cad26a9da36b lisp/international/mule-diag.el --- a/lisp/international/mule-diag.el Tue Mar 21 00:32:06 2000 +0000 +++ b/lisp/international/mule-diag.el Tue Mar 21 00:32:34 2000 +0000 @@ -905,7 +905,7 @@ (defun describe-font (fontname) "Display information about fonts which partially match FONTNAME." (interactive "sFontname (default, current choice for ASCII chars): ") - (or (and window-system (boundp 'global-fontset-alist)) + (or (and window-system (fboundp 'fontset-list)) (error "No fontsets being used")) (when (or (not fontname) (= (length fontname) 0)) (setq fontname (cdr (assq 'font (frame-parameters)))) @@ -946,7 +946,7 @@ (beginning-of-line) (insert fontset) (indent-to 58) - (insert (if (> size 0) (format "%2dx%d" size height) " -")) + (insert (if (and size (> size 0)) (format "%2dx%d" size height) " -")) (indent-to 64) (insert style "\n") (when print-fonts @@ -988,7 +988,7 @@ The Charset column for each font contains a name of character set displayed (for this fontset) using that font." (interactive - (if (not (and window-system (boundp 'global-fontset-alist))) + (if (not (and window-system (fboundp 'fontset-list))) (error "No fontsets being used") (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))) (completion-ignore-case t)) @@ -1014,7 +1014,7 @@ With prefix arg, it also list the fonts contained in each fontset; see the function `describe-fontset' for the format of the list." (interactive "P") - (if (not (and window-system (boundp 'global-fontset-alist))) + (if (not (and window-system (fboundp 'fontset-list))) (error "No fontsets being used") (with-output-to-temp-buffer "*Help*" (save-excursion @@ -1101,7 +1101,7 @@ " Section 3. Input methods\n" " Section 4. Coding systems\n" " Section 5. Character sets\n") - (if (and window-system (boundp 'global-fontset-alist)) + (if (and window-system (fboundp 'fontset-list)) (insert " Section 6. Fontsets\n")) (insert "\n") @@ -1150,7 +1150,7 @@ (list-character-sets-2) (insert "\n") - (when (and window-system (boundp 'global-fontset-alist)) + (when (and window-system (fboundp 'fontset-list)) ;; This code duplicates most of list-fontsets. (insert-section 6 "Fontsets") (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n")