emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 fb5f616: Improve an example in w32 FAQ


From: Eli Zaretskii
Subject: emacs-27 fb5f616: Improve an example in w32 FAQ
Date: Wed, 15 Apr 2020 13:28:32 -0400 (EDT)

branch: emacs-27
commit fb5f616ae869d1d1ad231f84d1aad4574fd32df4
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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 <address@hidden>.
---
 doc/misc/efaq-w32.texi | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi
index 02e63c7..83dd176 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
 (x-select-font nil t)
 @end example
 
-To see a complete list of fonts, execute the following in the
-@file{*scratch*} buffer by pressing C-x C-e at the end of the line:
+To see a complete list of fonts, execute the following Lisp snippet by
+typing it into the @file{*scratch*} buffer and pressing @w{@kbd{C-x
+C-e}} at the end of the second line:
+
 @example
-(insert (prin1-to-string (x-list-fonts "*")))
+(dolist (font (x-list-fonts "*"))
+  (insert (format "%s\n" font)))
 @end example
 
 The command line options and frame-parameters for changing the default font



reply via email to

[Prev in Thread] Current Thread [Next in Thread]