From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#57693: 29.0.50; Is there a more reliable version of `char-displayable-p'? Date: Fri, 9 Sep 2022 18:25:53 -0400 Message-ID: References: <87v8pw1xyo.fsf@localhost> <87sfl07j9b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38067"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57693@debbugs.gnu.org To: Robert Pluim , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 10 00:27:10 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 1oWmSs-0009pc-I7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 00:27:10 +0200 Original-Received: from localhost ([::1]:38180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWmSr-0002nK-HP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 18:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWmSk-0002nA-VA for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 18:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWmSk-0000B6-L2 for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 18:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWmSk-000740-BM for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Sep 2022 22:27: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.166276236327072 (code B ref 57693); Fri, 09 Sep 2022 22:27:02 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 9 Sep 2022 22:26:03 +0000 Original-Received: from localhost ([127.0.0.1]:35872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWmRn-00072a-J3 for submit@debbugs.gnu.org; Fri, 09 Sep 2022 18:26:03 -0400 Original-Received: from mail-oa1-f47.google.com ([209.85.160.47]:38497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWmRj-00071x-Jf for 57693@debbugs.gnu.org; Fri, 09 Sep 2022 18:26:02 -0400 Original-Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-1278624b7c4so7601234fac.5 for <57693@debbugs.gnu.org>; Fri, 09 Sep 2022 15:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date; bh=2OMqnHpI2CimujFwC8FID/M78sHipo2ace14UUnfVJ8=; b=ScNCDC5IM7mREcmhv6mwhFiknTtAqf/erlOF1NZ0GXMRRrIVFwRSONFWjGyT5o2z0G oz7ds7G9bQ9zV8ejlSJQXtaXjxwuGtqxKZfS7jxkyDnyXpAtmQ8RVt2LA8ZwbFnwCYKg EEhrS2dOzgy3dEwGg3LmWAiwDDY1g7ygOzUyCaY27jOiez/wsyJgMZKn/b7uv4bNJS8b q8LCoKuQnowJp07TIDObeXZ0Rb626v54sj1TaiAGKSIWV28NAaHCVzzlQknISk3sTtUj FEFJ2BTFCNhvb/lr8no8p0eZ3lMYeoEg3pOMsysYdaRovr2Z7E8zp9HUL5o/U0URIwjH KK3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date; bh=2OMqnHpI2CimujFwC8FID/M78sHipo2ace14UUnfVJ8=; b=eNBR1yrqmruQskIxbwuzvVFkNOZBBTP32sZQRJiStOwHXs9IADIgdQcML1HERklhpK nzfinsDI7ckjJJ5sdagJwk3XfbSkRX8hAATEqiP8pcLjXhFG9zN8AkoIFL105Pq47z7p YhTrsoyEE8sDKN+JDIJDRSXA0236jBK45WS1iOE8e8URFo0GfcniQsZWg3cqVgsRBH7v 1leyR+o58eTKdP+3qGjnWK6P86aHjYuIU3is+IkNbZfA/9pULcoWtPjxPRsW8G163ORc MyE/gZOU8ulANC5a0j2FUQDLtVLRHKAy5u43hX1jsFZD/dMXwWExCflZnEIaKFSkSHS2 3gNg== X-Gm-Message-State: ACgBeo3QhunroERXQ1hKolGK94aWxrT9UJz3b1p6SlgC9JrJChwLBdY0 pzVBArXCGX1ZBE3mdMmMQc4v3/lIJ5mxvbjdQ23ZNrKM X-Google-Smtp-Source: AA6agR5ekW4zOY1zPkE/9tOsuSS1nLMqywk8/G+CnQOLOuUazyIMcDODcgqwicUS7Ia2mazdArbkixIpLBjWte429Fw= X-Received: by 2002:a05:6870:538c:b0:11b:e64f:ee1b with SMTP id h12-20020a056870538c00b0011be64fee1bmr5898426oan.92.1662762354179; Fri, 09 Sep 2022 15:25:54 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 9 Sep 2022 18:25:53 -0400 In-Reply-To: <87sfl07j9b.fsf@gmail.com> X-Hashcash: 1:20:220909:57693@debbugs.gnu.org::XGZ9U1N7g30oeq7w:1hlc 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:242042 Archived-At: 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 so= me more > Ihor> accurate way to know if a character can be actually displayed o= n buffer > Ihor> or not. > > I=CA=BCd 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? I'm not asking for a perfect solution, but even just making it a bit better might be a step forward.