[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57693: 29.0.50; Is there a more reliable version of `char-displayabl
From: |
Eli Zaretskii |
Subject: |
bug#57693: 29.0.50; Is there a more reliable version of `char-displayable-p'? |
Date: |
Sat, 10 Sep 2022 09:02:35 +0300 |
> Cc: 57693@debbugs.gnu.org
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Fri, 9 Sep 2022 18:25:53 -0400
>
> Robert Pluim <rpluim@gmail.com> writes:
>
> > Ihor> False-positives are indeed not unexpected in char-displayable-p;
> > just as
> > Ihor> its docstring warns. However, I am now wondering if there is some
> > more
> > Ihor> accurate way to know if a character can be actually displayed on
> > buffer
> > Ihor> or not.
> >
> > Iʼd look at the guts of `describe-char-display' in
> > "lisp/descr-text.el" for inspiration (or even use it as is). It takes
> > a `pos' argument so you may have to wrap it in `with-temp-buffer' +
> > `insert'.
>
> I know very little about this area of Emacs, but is there any reason why
> we couldn't just (try to) make `char-displayable-p' more accurate?
>From where I stand, it already is, for GUI frames. If we discovered
some deficiency in what it does, we need to understand the deficiency
and try to remove it.