From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83illvbwck.fsf@gnu.org> References: <87v8pw1xyo.fsf@localhost> <87sfl07j9b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10475"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, yantar92@gmail.com, 57693@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 10 08:10:42 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWthS-0002b9-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 08:10:42 +0200 Original-Received: from localhost ([::1]:60342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWthR-0003V6-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 02:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWtb0-0007M3-UV for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:04:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWtb0-0001bU-LK for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWtb0-0004HQ-GP for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Sep 2022 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57693 X-GNU-PR-Package: emacs Original-Received: via spool by 57693-submit@debbugs.gnu.org id=B57693.166278978416364 (code B ref 57693); Sat, 10 Sep 2022 06:04:02 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 10 Sep 2022 06:03:04 +0000 Original-Received: from localhost ([127.0.0.1]:36266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWta4-0004Fs-0g for submit@debbugs.gnu.org; Sat, 10 Sep 2022 02:03:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWta1-0004FC-Tz for 57693@debbugs.gnu.org; Sat, 10 Sep 2022 02:03:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWtZw-0001Lh-L5; Sat, 10 Sep 2022 02:02:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ZrL5wgZsE4l9h0suJDayf8kSD77uT4/FMzFxL6QHGf8=; b=eLTGltDs25yINwSrZBMN Wp9wsxk7aJIqLRPaJHPW1l61yveYcfj+P//VzOARXbGzPcKu+HF+khBWRCPH/KDeHbumb4tsz2HOK 60Gix8drRSlOR9G97Fe6iDMbfxq2YYzb4p12Gf327KrVr02mV7fxxmHcr+E6khfjIphGep3MwjBz+ oEXj30YvaiLvsJWabLtDGGz+luPaGXKViZOHd8O8IGC5rIqFhfQrVZ8ZSaK/u3l0T75UzbNDFjcfd tYOT5OE10qgHV6ZLfcsuQfOSOrkH10pMUjmziJrSisVKM9PYWep26nb/3tVGnxtXHKZh1ATQKMQb1 DLFFsRK8+AN8tg==; Original-Received: from [87.69.77.57] (port=1722 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWtZv-0004yK-Rh; Sat, 10 Sep 2022 02:02:56 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 9 Sep 2022 18:25:53 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242070 Archived-At: > Cc: 57693@debbugs.gnu.org > From: Stefan Kangas > Date: Fri, 9 Sep 2022 18:25:53 -0400 > > Robert Pluim 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.