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#44155: Print integers as characters Date: Wed, 04 Nov 2020 17:38:35 +0200 Message-ID: <83lffhb090.fsf@gnu.org> References: <871rhd3peq.fsf@mail.linkov.net> <608FF40B-D8F6-471E-8036-4779D892E987@acm.org> <87imanigpd.fsf@mail.linkov.net> <83ft5qcvl6.fsf@gnu.org> <650DFF04-509F-4B8C-9C53-F38DC10B9F97@acm.org> <83y2jib5c7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14351"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44155@debbugs.gnu.org, schwab@suse.de, juri@linkov.net To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 04 16:47:11 2020 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 1kaL0A-0003c4-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 16:47:10 +0100 Original-Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaL09-0003jf-DC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 10:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaKsI-0000Rw-Qp for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 10:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaKsI-0002Fa-FN for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 10:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kaKsI-0003Rs-Cp for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 10:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Nov 2020 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44155 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 44155-submit@debbugs.gnu.org id=B44155.160450432913236 (code B ref 44155); Wed, 04 Nov 2020 15:39:02 +0000 Original-Received: (at 44155) by debbugs.gnu.org; 4 Nov 2020 15:38:49 +0000 Original-Received: from localhost ([127.0.0.1]:50302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaKs5-0003RQ-Ds for submit@debbugs.gnu.org; Wed, 04 Nov 2020 10:38:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaKs3-0003R9-Mp for 44155@debbugs.gnu.org; Wed, 04 Nov 2020 10:38:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41575) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaKrx-0002Dv-Oo; Wed, 04 Nov 2020 10:38:41 -0500 Original-Received: from [176.228.60.248] (port=4000 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kaKrx-00043b-3d; Wed, 04 Nov 2020 10:38:41 -0500 In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Wed, 4 Nov 2020 12:03:32 +0100) 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:192673 Archived-At: > From: Mattias EngdegÄrd > Date: Wed, 4 Nov 2020 12:03:32 +0100 > Cc: juri@linkov.net, schwab@suse.de, 44155@debbugs.gnu.org > > 'Printable' was used informally, not in an exact technical meaning. Intuitively, it should be the set of characters that make sense to print using the '?X' syntax. I initially thought that 'graphic' was too technical but it is more precise. 'Independently printable graphic character' is descriptive but a mouthful; perhaps 'independent graphic char' would do? I'm not sure. I think we should use something more familiar, or explain it in more detail. We already mention Unicode properties elsewhere in the manual, so we could define this in those terms, and send the reader there for the details, for example. > For the ?X syntax to make sense, X must be visible; thus controls are out, and so are formatting chars (language tags etc). Spaces should probably have been excluded as well since it's typically not possible to see what kind of space follows the '?' (SPC is explicitly rendered as ?\s). > > Furthermore, X must be independent since it isn't a grapheme cluster but a single code point. Therefore combining chars cannot be included as they would attach to the '?'. > > 'graphicp' cannot be used because it includes combining, enclosing and nonspacing marks (M) and formats (Cf); otherwise it's fine. > > While we could put the exact list of excluded general categories in the documentation, it is not very important because the selection only matters for usability and aesthetics, not (realistically) for code behaviour. > > The attached patch excludes spaces (Zs) and revises the terminology. I'm not going to argue about this aspect, but just FTR: whether to include combining characters is a decision that we make here, it is not a necessity. Because we are perfectly capable of displaying combining characters without risking them to become composed with surrounding characters: we could either precede them with U+25CC DOTTED CIRCLE, or use the technique describe-char-padded-string in descr-text.el uses. Thanks.