diff options
| author | Karl Heuer | 1998-04-11 01:06:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-04-11 01:06:37 +0000 |
| commit | effd4e827af92532ca8c5ad040316ce82d7dd9ac (patch) | |
| tree | c6547da109a75578d17e6018d25ae1fd06b266f6 | |
| parent | eefa62dd40c08a919c7fe0ba01d5c3d0be45c51e (diff) | |
| download | emacs-effd4e827af92532ca8c5ad040316ce82d7dd9ac.tar.gz emacs-effd4e827af92532ca8c5ad040316ce82d7dd9ac.zip | |
(list-input-methods): Fix doc string.
(describe-font, describe-fontset, list-fontsets, mule-diag): Don't
use fontset-related features if global-fontset-alist is not bound.
| -rw-r--r-- | lisp/international/mule-diag.el | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index a63781174ef..180564c7c98 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -543,8 +543,8 @@ but contains full information about each coding systems." | |||
| 543 | (defun describe-font (fontname) | 543 | (defun describe-font (fontname) |
| 544 | "Display information about fonts which partially match FONTNAME." | 544 | "Display information about fonts which partially match FONTNAME." |
| 545 | (interactive "sFontname (default, current choice for ASCII chars): ") | 545 | (interactive "sFontname (default, current choice for ASCII chars): ") |
| 546 | (or window-system | 546 | (or (and window-system (boundp 'global-fontset-alist)) |
| 547 | (error "No window system being used")) | 547 | (error "No fontsets being used")) |
| 548 | (when (or (not fontname) (= (length fontname) 0)) | 548 | (when (or (not fontname) (= (length fontname) 0)) |
| 549 | (setq fontname (cdr (assq 'font (frame-parameters)))) | 549 | (setq fontname (cdr (assq 'font (frame-parameters)))) |
| 550 | (if (query-fontset fontname) | 550 | (if (query-fontset fontname) |
| @@ -627,8 +627,8 @@ The O column of each font contains one of the following letters. | |||
| 627 | The Charset column of each font contains a name of character set | 627 | The Charset column of each font contains a name of character set |
| 628 | displayed by the font." | 628 | displayed by the font." |
| 629 | (interactive | 629 | (interactive |
| 630 | (if (not window-system) | 630 | (if (not (and window-system (boundp 'global-fontset-alist))) |
| 631 | (error "No window system being used") | 631 | (error "No fontsets being used") |
| 632 | (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))) | 632 | (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))) |
| 633 | (completion-ignore-case t)) | 633 | (completion-ignore-case t)) |
| 634 | (list (completing-read | 634 | (list (completing-read |
| @@ -654,15 +654,17 @@ It prints name, size, and style of each fontset. | |||
| 654 | With prefix arg, it also lists up fonts contained in each fontset. | 654 | With prefix arg, it also lists up fonts contained in each fontset. |
| 655 | See the function `describe-fontset' for the format of the list." | 655 | See the function `describe-fontset' for the format of the list." |
| 656 | (interactive "P") | 656 | (interactive "P") |
| 657 | (with-output-to-temp-buffer "*Help*" | 657 | (if (not (and window-system (boundp 'global-fontset-alist))) |
| 658 | (save-excursion | 658 | (error "No fontsets being used") |
| 659 | (set-buffer standard-output) | 659 | (with-output-to-temp-buffer "*Help*" |
| 660 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") | 660 | (save-excursion |
| 661 | (insert "------------\t\t\t\t\t\t ----- -----\n") | 661 | (set-buffer standard-output) |
| 662 | (let ((fontsets (fontset-list))) | 662 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") |
| 663 | (while fontsets | 663 | (insert "------------\t\t\t\t\t\t ----- -----\n") |
| 664 | (print-fontset (car fontsets) arg) | 664 | (let ((fontsets (fontset-list))) |
| 665 | (setq fontsets (cdr fontsets))))))) | 665 | (while fontsets |
| 666 | (print-fontset (car fontsets) arg) | ||
| 667 | (setq fontsets (cdr fontsets)))))))) | ||
| 666 | 668 | ||
| 667 | ;;;###autoload | 669 | ;;;###autoload |
| 668 | (defun list-input-methods () | 670 | (defun list-input-methods () |
| @@ -672,10 +674,10 @@ See the function `describe-fontset' for the format of the list." | |||
| 672 | (if (not input-method-alist) | 674 | (if (not input-method-alist) |
| 673 | (progn | 675 | (progn |
| 674 | (princ " | 676 | (princ " |
| 675 | No input method is avairable, perhaps because you have not yet | 677 | No input method is available, perhaps because you have not yet |
| 676 | installed LEIM (Libraries of Emacs Input Method). | 678 | installed LEIM (Libraries of Emacs Input Method). |
| 677 | 679 | ||
| 678 | LEIM is avairable from the same ftp directory as Emacs. For instance, | 680 | LEIM is available from the same ftp directory as Emacs. For instance, |
| 679 | if there exists an archive file emacs-20.N.tar.gz, there should also | 681 | if there exists an archive file emacs-20.N.tar.gz, there should also |
| 680 | be a file leim-20.N.tar.gz. When you extract this file, LEIM files | 682 | be a file leim-20.N.tar.gz. When you extract this file, LEIM files |
| 681 | are put under the subdirectory emacs-20.2/leim. When you install | 683 | are put under the subdirectory emacs-20.2/leim. When you install |
| @@ -718,7 +720,7 @@ Emacs again, you should be able to use various input methods.")) | |||
| 718 | It prints various information related to the current multilingual | 720 | It prints various information related to the current multilingual |
| 719 | environment, including lists of input methods, coding systems, | 721 | environment, including lists of input methods, coding systems, |
| 720 | character sets, and fontsets (if Emacs running under some window | 722 | character sets, and fontsets (if Emacs running under some window |
| 721 | system)." | 723 | system which uses fontsets)." |
| 722 | (interactive) | 724 | (interactive) |
| 723 | (with-output-to-temp-buffer "*Mule-Diagnosis*" | 725 | (with-output-to-temp-buffer "*Mule-Diagnosis*" |
| 724 | (save-excursion | 726 | (save-excursion |
| @@ -731,7 +733,7 @@ system)." | |||
| 731 | " Section 3. Input methods\n" | 733 | " Section 3. Input methods\n" |
| 732 | " Section 4. Coding systems\n" | 734 | " Section 4. Coding systems\n" |
| 733 | " Section 5. Character sets\n") | 735 | " Section 5. Character sets\n") |
| 734 | (if window-system | 736 | (if (and window-system (boundp 'global-fontset-alist)) |
| 735 | (insert " Section 6. Fontsets\n")) | 737 | (insert " Section 6. Fontsets\n")) |
| 736 | (insert "\n") | 738 | (insert "\n") |
| 737 | 739 | ||
| @@ -775,7 +777,7 @@ system)." | |||
| 775 | (insert-buffer-substring "*Help*") | 777 | (insert-buffer-substring "*Help*") |
| 776 | (insert "\n") | 778 | (insert "\n") |
| 777 | 779 | ||
| 778 | (when window-system | 780 | (when (and window-system (boundp 'global-fontset-alist)) |
| 779 | (insert-section 6 "Fontsets") | 781 | (insert-section 6 "Fontsets") |
| 780 | (save-excursion (list-fontsets t)) | 782 | (save-excursion (list-fontsets t)) |
| 781 | (insert-buffer-substring "*Help*")) | 783 | (insert-buffer-substring "*Help*")) |