From 7db2879a81e21749ed9f0808fc25d48ce22939e6 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Sun, 11 Oct 2020 03:49:37 +0200 Subject: [PATCH] Fix the documentation of char-displayable-p * doc/lispref/display.texi (Fontsets): Make the documentation of char-displayable-p less incorrect (bug#35230). --- doc/lispref/display.texi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index d2e6cad6c45..5b4b6720af2 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -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 -- 2.39.5