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: Tue, 03 Nov 2020 21:36:24 +0200 Message-ID: <83y2jib5c7.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> 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="36012"; 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 Tue Nov 03 20:38:33 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 1ka28X-0009FZ-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 20:38:33 +0100 Original-Received: from localhost ([::1]:35032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka28W-0007Ar-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 14:38:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka274-0006HS-Pz for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka274-0007l3-Gq for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka274-0003gZ-EX for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 14:37: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: Tue, 03 Nov 2020 19:37: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.160443220214137 (code B ref 44155); Tue, 03 Nov 2020 19:37:02 +0000 Original-Received: (at 44155) by debbugs.gnu.org; 3 Nov 2020 19:36:42 +0000 Original-Received: from localhost ([127.0.0.1]:46493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka26j-0003fv-OB for submit@debbugs.gnu.org; Tue, 03 Nov 2020 14:36:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka26i-0003fj-5p for 44155@debbugs.gnu.org; Tue, 03 Nov 2020 14:36:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50359) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka26c-0007il-6I; Tue, 03 Nov 2020 14:36:34 -0500 Original-Received: from [176.228.60.248] (port=1849 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ka26a-00006S-M2; Tue, 03 Nov 2020 14:36:33 -0500 In-Reply-To: <650DFF04-509F-4B8C-9C53-F38DC10B9F97@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Tue, 3 Nov 2020 19:47:17 +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:192643 Archived-At: > From: Mattias EngdegÄrd > Date: Tue, 3 Nov 2020 19:47:17 +0100 > Cc: juri@linkov.net, schwab@suse.de, 44155@debbugs.gnu.org > > > What is meant by "printable characters" here? One could think you > > mean [:print:], but that doesn't seem to be what then code does. > > Non-control characters (characters other than control characters), in this case. I wanted to keep things simple and not involve the Unicode database in the printer. > > (For that matter, [:print:] is a regexp feature and doesn't really define the meaning of 'printable', but your question was valid.) > > On the other hand, printing all non-controls using the ?X syntax is maybe not ideal. Attached is a new patch that uses Unicode properties to select only printable base characters. Thanks, but my main question is still not answered. I asked it from the POV of documentation: we should provide a more specific description of which characters will be printed as characters, so that users are not surprised. The text in NEWS still says "printable characters" without defining that term, and so does the doc string of print-integers-as-characters. And now there's another question, which is what caused you to filter characters like you did? E.g., what's wrong with combining classes? why not simply use graphicp?