bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44155: Print integers as characters


From: Mattias Engdegård
Subject: bug#44155: Print integers as characters
Date: Tue, 3 Nov 2020 19:47:17 +0100

3 nov. 2020 kl. 16.24 skrev Eli Zaretskii <eliz@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.

This patch also removes \a, \v, \e and \d from the characters printed as 
escaped controls.

Attachment: 0001-Reduce-integer-output-format-to-print-integers-as-ch.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]