+2003-02-20 Kenichi Handa <handa@m17n.org>
+
+ * international/mule-diag.el (print-fontset): If FONTSET is nil,
+ use the default fontset.
+ (describe-fontset): If the current frame is not using a fontset,
+ call print-fontset with nil.
+
2003-02-19 Andre Spiegel <spiegel@gnu.org>
* vc.el (vc-binary-assoc, vc-binary-suffixes): Removed; these
(defun print-fontset (fontset &optional print-fonts)
"Print information about FONTSET.
+If FONTSET is nil, print information about the default fontset.
If optional arg PRINT-FONTS is non-nil, also print names of all opened
fonts for FONTSET. This function actually inserts the information in
the current buffer."
+ (or fontset
+ (setq fontset (query-fontset "fontset-default")))
(let ((tail (aref (fontset-info fontset) 2))
elt chars font-spec opened prev-charset charset from to)
(beginning-of-line)
"Fontset (default, used by the current frame): "
fontset-list nil t)))))
(if (= (length fontset) 0)
- (setq fontset (cdr (assq 'font (frame-parameters)))))
- (if (not (setq fontset (query-fontset fontset)))
- (error "Current frame is using font, not fontset"))
+ (setq fontset (frame-parameter nil 'font)))
+ (setq fontset (query-fontset fontset))
(help-setup-xref (list #'describe-fontset fontset) (interactive-p))
(with-output-to-temp-buffer (help-buffer)
(with-current-buffer standard-output