diff options
| author | Eli Zaretskii | 2020-04-15 20:27:12 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-04-15 20:27:12 +0300 |
| commit | fb5f616ae869d1d1ad231f84d1aad4574fd32df4 (patch) | |
| tree | 7eb681cc35feaa26fb3c234305d23803932f3436 | |
| parent | 0ed7177696c8357f0b50d4c81a1f87e43db27e7c (diff) | |
| download | emacs-fb5f616ae869d1d1ad231f84d1aad4574fd32df4.tar.gz emacs-fb5f616ae869d1d1ad231f84d1aad4574fd32df4.zip | |
Improve an example in w32 FAQ
* doc/misc/efaq-w32.texi (Font names): Modify the expression to
insert a lits of all installed fonts so as to avoid producing too
long lines. Suggested by ndame <ndame@protonmail.com>.
| -rw-r--r-- | doc/misc/efaq-w32.texi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi index 02e63c7e463..83dd176f984 100644 --- a/doc/misc/efaq-w32.texi +++ b/doc/misc/efaq-w32.texi | |||
| @@ -942,10 +942,13 @@ To find the XFLD name for a font, you can execute the following in the | |||
| 942 | (x-select-font nil t) | 942 | (x-select-font nil t) |
| 943 | @end example | 943 | @end example |
| 944 | 944 | ||
| 945 | To see a complete list of fonts, execute the following in the | 945 | To see a complete list of fonts, execute the following Lisp snippet by |
| 946 | @file{*scratch*} buffer by pressing C-x C-e at the end of the line: | 946 | typing it into the @file{*scratch*} buffer and pressing @w{@kbd{C-x |
| 947 | C-e}} at the end of the second line: | ||
| 948 | |||
| 947 | @example | 949 | @example |
| 948 | (insert (prin1-to-string (x-list-fonts "*"))) | 950 | (dolist (font (x-list-fonts "*")) |
| 951 | (insert (format "%s\n" font))) | ||
| 949 | @end example | 952 | @end example |
| 950 | 953 | ||
| 951 | The command line options and frame-parameters for changing the default font | 954 | The command line options and frame-parameters for changing the default font |