From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#57693: 29.0.50; Is there a more reliable version of `char-displayable-p'? Date: Tue, 13 Sep 2022 09:44:06 +0800 Message-ID: <878rmoujyx.fsf@localhost> References: <87v8pw1xyo.fsf@localhost> <83a678d5w6.fsf@gnu.org> <878rmr25tk.fsf@localhost> <83czc3bvbg.fsf@gnu.org> <87y1urybt6.fsf@localhost> <837d2bbr2s.fsf@gnu.org> <87edwjy77h.fsf@localhost> <831qsjboy0.fsf@gnu.org> <87v8puw945.fsf@localhost> <838rmq9rfr.fsf@gnu.org> <837d2a9qcu.fsf@gnu.org> <875yhtw3ed.fsf@localhost> <83ills9741.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57693@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 03:44:18 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 1oXuyH-0000lj-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 03:44:17 +0200 Original-Received: from localhost ([::1]:41002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXuyG-0004I4-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 21:44:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXuy3-0004Hs-88 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 21:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXuy2-00027q-Vv for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 21:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXuy2-0001qu-HN for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 21:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 01:44: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.16630334047068 (code B ref 57693); Tue, 13 Sep 2022 01:44:02 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 13 Sep 2022 01:43:24 +0000 Original-Received: from localhost ([127.0.0.1]:48365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXuxP-0001pw-OW for submit@debbugs.gnu.org; Mon, 12 Sep 2022 21:43:24 -0400 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:35808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXuxL-0001ph-NQ for 57693@debbugs.gnu.org; Mon, 12 Sep 2022 21:43:21 -0400 Original-Received: by mail-pl1-f175.google.com with SMTP id t3so10317065ply.2 for <57693@debbugs.gnu.org>; Mon, 12 Sep 2022 18:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=CFZO+cUWHAyOYkiyy+Gf2muhXNNe5dTrfbA4s07SsU4=; b=ESZaMlEcIYKIk7CyvQtVe4KK66ju4o/3DxinLk85Zz/7spmBtuDcm1rTCv/1dadU/T mpwOoTNdo8G0xPRLDewYUjo3AhfaYUCGsE2Z0mqy1zXUirIWWzRN1a55tv159krcognU QZvlQkk/1NwX5fBfo7WvDlpN0xm32XIixr85doOqRd8goNHpSH/EMn7J5JltQ/HEgFYg hEf79sQ1OMLGbMcVVN3mdnrZ8WbeQ2Z6oFJCc1e5dLfgFugwIYvGalZhdV7F8iUTSF9j eMJdfALwfGcI1f9FKPp8nYF5iodsephc/SPFGuwNAJOnFl3hBHU0ZUkvTDxkhyjgCFFR kCjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=CFZO+cUWHAyOYkiyy+Gf2muhXNNe5dTrfbA4s07SsU4=; b=hb8QhaCPdGGPgpN0DvUudTbpKNrKSSTDLca6YWiUMc0lTAt+smssrF/AVjN2V+dbOj NPf0t2lwNk7ZOa4TBaKCTp81DxExhzq5QcPg1v7rlx/zOQP7Zx3qEGAFMoq2FhcsPp9o qrMvl9jnRxVAvRSzqtzX6/1tWIKjFzvqdqlmrH8/ZvjTBAOqxxJlvPxz8bahr5TtyIK9 izqGbauHiqBQnr92sxH5mec9i0usV9QibkYxdVMX1vY+x7KIU+En776zRCObW8HeUUrQ OWJmxynXpN6JnE2CwMpPprJ/W/YhLUZEeJg/QIxZuxqCwz2/eo1mrcnqLJicM/nCblpw RImg== X-Gm-Message-State: ACgBeo3JLs6L0vuIqkzNWkO+okv18N/Bc9kfdHJg7g8UrqdO0oKj1oUO Y1xusMKfO8YnT+Z1MLWImwM= X-Google-Smtp-Source: AA6agR69xCOgL0ajdY8cVNbO4JE/H9RN36Jdj48Iztao9XV36Amc/LkDMKW3Tbasv95f8aarvjIM6g== X-Received: by 2002:a17:90b:4fc8:b0:202:a340:3594 with SMTP id qa8-20020a17090b4fc800b00202a3403594mr1379899pjb.149.1663033393855; Mon, 12 Sep 2022 18:43:13 -0700 (PDT) Original-Received: from localhost ([2409:8970:a81:48f7:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id p9-20020a170902a40900b00176953f7997sm6737560plq.158.2022.09.12.18.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 18:43:13 -0700 (PDT) In-Reply-To: <83ills9741.fsf@gnu.org> 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:242307 Archived-At: Eli Zaretskii writes: > If the terminal's encoding is UTF-8, and it doesn't support the method > we use to query about individual glyphs, char-displayable-p may return > non-nil when the character cannot be displayed, i.e. will show as an > empty box or something. Otherwise, char-displayable-p does provide > the correct answer for TTY frames. Do I understand correctly that: 1. `font-at' is not sufficient for terminals, and we also need to use `char-displayable-p' 2. `char-displayable-p' works on many terminals but may be inaccurate in some -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92