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: Sat, 10 Sep 2022 14:37:41 +0800 Message-ID: <87y1urybt6.fsf@localhost> References: <87v8pw1xyo.fsf@localhost> <83a678d5w6.fsf@gnu.org> <878rmr25tk.fsf@localhost> <83czc3bvbg.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="18494"; 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 Sat Sep 10 08:38:14 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 1oWu85-0004fu-Nr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 08:38:13 +0200 Original-Received: from localhost ([::1]:59822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWu84-0007z7-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 02:38:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWu7u-0007vs-JY for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWu7u-0006Vc-5Z for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWu7u-00016u-1g for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 02:38: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: Sat, 10 Sep 2022 06:38: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.16627918224195 (code B ref 57693); Sat, 10 Sep 2022 06:38:02 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 10 Sep 2022 06:37:02 +0000 Original-Received: from localhost ([127.0.0.1]:36410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWu6t-00015H-3k for submit@debbugs.gnu.org; Sat, 10 Sep 2022 02:37:02 -0400 Original-Received: from mail-pj1-f53.google.com ([209.85.216.53]:42730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWu6n-000150-Hw for 57693@debbugs.gnu.org; Sat, 10 Sep 2022 02:36:57 -0400 Original-Received: by mail-pj1-f53.google.com with SMTP id q62-20020a17090a17c400b00202a3497516so1203111pja.1 for <57693@debbugs.gnu.org>; Fri, 09 Sep 2022 23:36:53 -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=IE659SrDcVzKxka62Svp9cdgvk0Rfr/Ob0PQCdtzRXE=; b=PFttgmGef7jn0jsawQunWyG3XyBgxw91rCa10SA2YP4Uan2io7izPfgxVJGM6RV8wT yZ66Va0KI2J/iIHBORk2A0SDMRY1f3FPyd2YPjS7V8WKWKkU2qADeFOchWfDZ9R3Bx11 UxkeDFCULXHTpiJoXXGhkMoA1HiRByG1AcRYPA6bnYP2uGy9jsiqM9bilgnjiBFt1xsR f7EBFfv/NDQ+9Uq6oBt181pTiTgQl/zqP2zoukLjVw0VMMtOmHzNCl+8InzOkWQjYyid LHjidVoJY39yfJMGkVa/hHBbcWcto+cXtfnUdw4a9qlXGtNaD8jgRvq+fvznPAgJafoc Dj4w== 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=IE659SrDcVzKxka62Svp9cdgvk0Rfr/Ob0PQCdtzRXE=; b=iG7Wr+sJ8zMI5sgwOuycYm0hfAsYUKTNj8Ve/tOYaiDgRKJAWkxdaV7Iy+MsINpwTi YuVTOgNPO5OhcomDrnrGpjM5JgLto7I/XdUqRaXB7v98BLFitX3f9CP35ryMTwpcpJgq A6E3lXSe/NV7y/AWbsbiVuGO10gE1jjuF9mrp4t+LbC+Wp69xeRK88yPS3tPS52PHDgs IhP5vVQ9pcGbNLFsdF47oU9KYpuOLgsMJBNxR1QsMJQnM0DpwTUn16KBME8l1nRZfHQo NMVS24BOF9u17PxhoGtQX8jpPrm4NffXBZFx7gxjrcYu0QsHctWq6Vhcbuqznw9R2WgP +A8Q== X-Gm-Message-State: ACgBeo1GoezbwH7KH78R95YseOC736hIaF6CJcYF7m879lAB6qYUxBgS icztMVktrOFGhlagRZ8w9DgGtUnhbbevXg== X-Google-Smtp-Source: AA6agR7T73uQq0CRCQ42sBn9n4Ef3xISLoVTHlpNmr0gWmVcV/VgmxYWoru0DUJmTl5T5HuVIf5s/g== X-Received: by 2002:a17:90a:cc04:b0:200:b869:5ba4 with SMTP id b4-20020a17090acc0400b00200b8695ba4mr13568932pju.234.1662791807519; Fri, 09 Sep 2022 23:36:47 -0700 (PDT) Original-Received: from localhost ([1.83.154.15]) by smtp.gmail.com with ESMTPSA id a3-20020a170902710300b0016d3935eff0sm1485153pll.176.2022.09.09.23.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 23:36:47 -0700 (PDT) In-Reply-To: <83czc3bvbg.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:242080 Archived-At: Eli Zaretskii writes: >> However, it is not very clear for me how to determine programmatically if >> given character is displayable in buffer. > > Make the char-displayable-p test at run time, I guess, i.e. when you > are actually about to insert it. This should indeed be slightly more accurate. However, it will still not cover scenarios when, for example, an overlay at point has 'face property that sets a font that is unable to display given char. Or do I miss something? -- 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