From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57693: 29.0.50; Is there a more reliable version of `char-displayable-p'? Date: Sat, 18 Feb 2023 08:56:06 +0200 Message-ID: <83wn4fzcl5.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15330"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@gmail.com, 57693@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 18 07:57:59 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 1pTHAV-0003nS-2F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Feb 2023 07:57:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTH9m-0001PL-Q0; Sat, 18 Feb 2023 01:57:14 -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 1pTH9l-0001On-6Y for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 01:57:13 -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 1pTH9a-0002Dd-8S for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 01:57:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTH9Z-0001Tt-Tn for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 01:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2023 06:57: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.16767033765638 (code B ref 57693); Sat, 18 Feb 2023 06:57:01 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 18 Feb 2023 06:56:16 +0000 Original-Received: from localhost ([127.0.0.1]:42251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTH8p-0001Ss-Mo for submit@debbugs.gnu.org; Sat, 18 Feb 2023 01:56:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTH8o-0001Sg-6y for 57693@debbugs.gnu.org; Sat, 18 Feb 2023 01:56:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTH8i-0001qK-JG; Sat, 18 Feb 2023 01:56:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RS8+HoWRlKq0EVFg87iETmzFUg2udark7KVYvc/hdnw=; b=W3jV3rSO4gYq Om6C5604Ya+4QqOlbAxlMB0EfK3jvOWB3yJeIlyPBedwYztR40c4x2HaxYtvNI20yOMSJNthAu+I9 HlxVaqReUXfYptxlTlbMQpjDxlaADpAlLhkqKNHr97Qa9ef8t0MkKwQfcVPG1HSYLPa796hlLOieJ Bt+CPY0R5WldmMaAsXEZpkC5+FkX0KnrC8pxwskTU0MXof6DDH9M5SZ56+Wl5ymOOGPyY7Fey4IIS 8Cxs+Mc2X+BXTqvEkAT+sY38I65FhtLM102L4c/fFOYYDx2lXXe06i5EYcjeLSAzT8Ci+BgWT/WEB yxNysCpdd9HxLTZyyE/VOw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTH8e-0000k0-4d; Sat, 18 Feb 2023 01:56:08 -0500 In-Reply-To: (message from Stefan Kangas on Fri, 17 Feb 2023 14:31:49 -0800) 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:255930 Archived-At: > From: Stefan Kangas > Date: Fri, 17 Feb 2023 14:31:49 -0800 > Cc: yantar92@gmail.com, 57693@debbugs.gnu.org > > Eli Zaretskii writes: > > > Something like what? If you want to suggest some specific function, > > please show the proposed code, and let's take it from there. > > Otherwise, this bug discussion was long and considered several issues, > > and it is hard to know what you have in mind. > > The code is here: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57693#71 That's for GUI displays only. And it's for strings, not characters. To test a single character, you don't need a separate function, IMO, you just need to use the test that is the core of that code. > > And what is the problem with using char-displayable-p in that case? > > My concern is that `char-displayable-p' will return t even if the > character is not displayable. If you need to care for TTY frames, that problem has no known solution that works for all terminal emulators. So using fancy characters in general-purpose Emacs features is a problem that cannot be solved programmatically, or at least we don't currently know how to do that.