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 11:31:24 +0000 Message-ID: <87edqlki2b.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> <831qmo146g.fsf@gnu.org> <83wn4fzcl5.fsf@gnu.org> <83lekvz605.fsf@gnu.org> <871qmnky3b.fsf@localhost> <83cz67yyon.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="22566"; 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 12:31:15 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 1pThuV-0005gj-6u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Feb 2023 12:31:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pThuL-00084c-Ri; Sun, 19 Feb 2023 06:31: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 1pThuI-00083t-O3 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 06:31:02 -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 1pThuI-00080q-F2 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 06:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pThuI-0000uX-1O for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 06:31:02 -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 11:31: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.16768062573491 (code B ref 57693); Sun, 19 Feb 2023 11:31:02 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 19 Feb 2023 11:30:57 +0000 Original-Received: from localhost ([127.0.0.1]:45839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pThuD-0000uF-D0 for submit@debbugs.gnu.org; Sun, 19 Feb 2023 06:30:57 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:49131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pThuB-0000ty-6G for 57693@debbugs.gnu.org; Sun, 19 Feb 2023 06:30:55 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2F9AC2400D2 for <57693@debbugs.gnu.org>; Sun, 19 Feb 2023 12:30:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676806249; bh=xTOMYXtAtVVs4SxrEKZbbgLIX8Tj15SoNjDuTOtx1y0=; h=From:To:Cc:Subject:Date:From; b=avp2x4bNxqvkDe6K/8Y5aSUvcp91OEyGooJko56TG6hpW1CRQDk1xytrNwaWkquyg uHFm8tZ6LHx9ODxdRFk/Y6g/iq7iWup85I649KRVDaCRuY+SQasWGFzOLJs4OIYq+2 P3wshI04T6SIKH7Er0D/48VWenMXCp1EqA9Ybhy93LbBvZ4IPxS8eVsAXZdCybKQ3c 1hL8XsYyoqlnKQRvsfTZRpO5rm6mrfMULjGijdPM18WwLokoZYpw5WZXLH4tL6VJEK CIT/M1864sKUX3nsgrQTJA7o7p4IN1h+lk4kHeVjcskQE7OjHQj/vUh+zYZSAMlcHv /XiEP3QoxT1sQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PKNdx6g15z6tn5; Sun, 19 Feb 2023 12:30:44 +0100 (CET) In-Reply-To: <83cz67yyon.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:256052 Archived-At: Eli Zaretskii writes: > We already have something like that: see glyphless-char-display and > glyphless-char-display-mode. Thanks for the pointer! This sounds like a suitable approach when displaying "fancy" characters. > The problem is that (a) on GUI displays > the replacement will be displayed in a box; (b) the replacement must > be an ASCII character; and (c) the char-table we use for that is > global, i.e. it affects the entire session. But if someone wants a > more flexible feature which lifts some of those restrictions, that's > the place to start nonetheless. What about 1. Allowing the char-table to be buffer-local or within text-properties 2. Making (set-char-table-range glyphless-char-display ?A ?B) work on GUI as well, not just in terminals 3. Making the rules recursive. So that setting something like (set-char-table-range glyphless-char-display ?A "1") (set-char-table-range glyphless-char-display ?1 "2") will display "A" as "2" (A->1->2) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at