diff options
| author | Kenichi Handa | 2003-02-20 08:43:22 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-02-20 08:43:22 +0000 |
| commit | c0e70a9f1da87eb10973e19ff331c372ca017251 (patch) | |
| tree | 281f800f1d4786de583783e509917186378b23d5 | |
| parent | e2b45cf9a0b19aef57e1c4645752fc04b17de463 (diff) | |
| download | emacs-c0e70a9f1da87eb10973e19ff331c372ca017251.tar.gz emacs-c0e70a9f1da87eb10973e19ff331c372ca017251.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/international/mule-diag.el | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f7abcf266e8..217867bc993 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-02-20 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/mule-diag.el (print-fontset): If FONTSET is nil, | ||
| 4 | use the default fontset. | ||
| 5 | (describe-fontset): If the current frame is not using a fontset, | ||
| 6 | call print-fontset with nil. | ||
| 7 | |||
| 1 | 2003-02-19 Andre Spiegel <spiegel@gnu.org> | 8 | 2003-02-19 Andre Spiegel <spiegel@gnu.org> |
| 2 | 9 | ||
| 3 | * vc.el (vc-binary-assoc, vc-binary-suffixes): Removed; these | 10 | * vc.el (vc-binary-assoc, vc-binary-suffixes): Removed; these |
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 05a03d26f4d..de10d4c310f 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -1057,9 +1057,12 @@ but still contains full information about each coding system." | |||
| 1057 | 1057 | ||
| 1058 | (defun print-fontset (fontset &optional print-fonts) | 1058 | (defun print-fontset (fontset &optional print-fonts) |
| 1059 | "Print information about FONTSET. | 1059 | "Print information about FONTSET. |
| 1060 | If FONTSET is nil, print information about the default fontset. | ||
| 1060 | If optional arg PRINT-FONTS is non-nil, also print names of all opened | 1061 | If optional arg PRINT-FONTS is non-nil, also print names of all opened |
| 1061 | fonts for FONTSET. This function actually inserts the information in | 1062 | fonts for FONTSET. This function actually inserts the information in |
| 1062 | the current buffer." | 1063 | the current buffer." |
| 1064 | (or fontset | ||
| 1065 | (setq fontset (query-fontset "fontset-default"))) | ||
| 1063 | (let ((tail (aref (fontset-info fontset) 2)) | 1066 | (let ((tail (aref (fontset-info fontset) 2)) |
| 1064 | elt chars font-spec opened prev-charset charset from to) | 1067 | elt chars font-spec opened prev-charset charset from to) |
| 1065 | (beginning-of-line) | 1068 | (beginning-of-line) |
| @@ -1138,9 +1141,8 @@ This shows which font is used for which character(s)." | |||
| 1138 | "Fontset (default, used by the current frame): " | 1141 | "Fontset (default, used by the current frame): " |
| 1139 | fontset-list nil t))))) | 1142 | fontset-list nil t))))) |
| 1140 | (if (= (length fontset) 0) | 1143 | (if (= (length fontset) 0) |
| 1141 | (setq fontset (cdr (assq 'font (frame-parameters))))) | 1144 | (setq fontset (frame-parameter nil 'font))) |
| 1142 | (if (not (setq fontset (query-fontset fontset))) | 1145 | (setq fontset (query-fontset fontset)) |
| 1143 | (error "Current frame is using font, not fontset")) | ||
| 1144 | (help-setup-xref (list #'describe-fontset fontset) (interactive-p)) | 1146 | (help-setup-xref (list #'describe-fontset fontset) (interactive-p)) |
| 1145 | (with-output-to-temp-buffer (help-buffer) | 1147 | (with-output-to-temp-buffer (help-buffer) |
| 1146 | (with-current-buffer standard-output | 1148 | (with-current-buffer standard-output |