]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the documentation of char-displayable-p
authorRobert Pluim <rpluim@gmail.com>
Sun, 11 Oct 2020 01:49:37 +0000 (03:49 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 11 Oct 2020 01:49:37 +0000 (03:49 +0200)
* doc/lispref/display.texi (Fontsets): Make the documentation of
char-displayable-p less incorrect (bug#35230).

doc/lispref/display.texi

index d2e6cad6c45365cde70a193c5b74e88e9e24b44b..5b4b6720af26df62a38a0b6f64a317cc07c140ec 100644 (file)
@@ -3668,12 +3668,16 @@ the charset @code{japanese-jisx0208}.
 @end defun
 
 @defun char-displayable-p char
-This function returns @code{t} if Emacs ought to be able to display
-@var{char}.  More precisely, if the selected frame's fontset has a
-font to display the character set that @var{char} belongs to.
+This function returns non-@code{nil} if Emacs ought to be able to
+display @var{char}.  Or more precisely, if the selected frame's fontset
+has a font to display the character set that @var{char} belongs to.
 
 Fontsets can specify a font on a per-character basis; when the fontset
 does that, this function's value may not be accurate.
+
+This function may return non-@code{nil} even when there is no font
+available, since it also checks whether the coding system for the text
+terminal can encode the character (@pxref{Terminal Coding}).
 @end defun
 
 @node Low-Level Font