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: Sun, 19 Feb 2023 12:08:48 +0000 Message-ID: <877cwdkgbz.fsf@localhost> References: <87v8pw1xyo.fsf@localhost> <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> <831qmo146g.fsf@gnu.org> <83wn4fzcl5.fsf@gnu.org> <83lekvz605.fsf@gnu.org> <871qmnky3b.fsf@localhost> <83cz67yyon.fsf@gnu.org> <87edqlki2b.fsf@localhost> <83zg99x42y.fsf@gnu.org> 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="1452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57693@debbugs.gnu.org, stefankangas@gmail.com, yantar92@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 19 13:09:10 2023 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 1pTiVC-0000Bo-Id for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Feb 2023 13:09:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTiV7-0002RF-B9; Sun, 19 Feb 2023 07:09:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTiV6-0002Qj-Fo for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 07:09:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTiV3-00078B-P3 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 07:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTiV3-00021H-LF for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 07:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2023 12:09:01 +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.16768084987705 (code B ref 57693); Sun, 19 Feb 2023 12:09:01 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 19 Feb 2023 12:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:45889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTiUL-00020C-ND for submit@debbugs.gnu.org; Sun, 19 Feb 2023 07:08:18 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:33557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTiUK-0001zz-3A for 57693@debbugs.gnu.org; Sun, 19 Feb 2023 07:08:16 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 490652400D5 for <57693@debbugs.gnu.org>; Sun, 19 Feb 2023 13:08:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676808490; bh=rUp7cAbCSLwKow1XmIfL9MBTu7FLaXHczs0mJwLOIv8=; h=From:To:Cc:Subject:Date:From; b=XEjhNgGrs9BLifYxcE8quxK3Aor2EUHI3owgHjK6/fw+eWkHWpbpPCSTUuBnl2I7S MmY4mqYRm/jXDNR4EgTbnlyAHWthRmHsZB1HHZodf8ITbjttTYcNaIBtkp8k6t8QH3 r/zZHStLnHnHma6uncgeUz++8aTOuaatxktp7ahke2bMiJccW0G6K5lLATZ61JuG21 e61nCHhJDA8jZx9S0gF9JAey91VKdHd9wMWSGgk4W0j6v7dv4JfSeEH4w1m2nnfYJg rm0zjG/Y70o60EOxSoWzC6F3VaMv8NALbboMXlPnGpWW9rozBaN9kkTmm9BBsuRISH XBCBpYXOSkOBQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PKPT52vFLz9rxG; Sun, 19 Feb 2023 13:08:09 +0100 (CET) In-Reply-To: <83zg99x42y.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256057 Archived-At: Eli Zaretskii writes: >> or within text-properties > > Only if really needed. Adding a text property for this will > complicate the display code which handles this, so I'd rather we > didn't unless we have a _very_ good reason. And I don't see such a > reason, since we are talking about characters that cannot be displayed > by any available font, something that is unlikely to be limited to > just a small region of text. The replacement may only make sense in particular context. For example, mode line indicator for newlines can be ?: or ?\ or ?/. If we want to display a more intuitive Unicode char like ?=E2=8F=8E or ?=E2=80=B8, it doe= s not make sense to replace all the ?=E2=8F=8E in buffer with ?:. Of course, even just having (2) will be an improvement. >> 2. Making (set-char-table-range glyphless-char-display ?A ?B) work on >> GUI as well, not just in terminals > > You mean (set-char-table-range glyphless-char-display ?A "B"), I > presume (the value cannot be a character, only a string). Yes. >> 3. Making the rules recursive. > > What for? It's a very significant complication, and I cannot see the > purpose. The string value _must_ use only ASCII characters, precisely > _because_ we want to be sure no recursion will be needed. Makes sense. I was thinking about multiple alternatives from more fancy to less fancy down to fallback ASCII. This feature is of minor importance. BTW, if we need the replacement of character sequences, is `composition-function-table' supposed to be used? It is not well-described in the manual and I only know it from https://www.masteringemacs.org/article/unicode-ligatures-color-emoji --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at