]> git.eshelyaron.com Git - emacs.git/commit
New variable integer-output-format to print integers as characters (bug#44155)
authorJuri Linkov <juri@linkov.net>
Sat, 31 Oct 2020 20:11:02 +0000 (22:11 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 31 Oct 2020 20:11:02 +0000 (22:11 +0200)
commit5d9e456c3ed3dcefe6bf48e24a1a8f275fc887cb
treefc7e141fbde3a524969741ecbc91614c67550503
parentc307c9648d541338814fe541389ea8c7a1cf50a5
New variable integer-output-format to print integers as characters (bug#44155)

* doc/lispref/streams.texi (Output Variables): Add integer-output-format.

* src/print.c (print_object): In case of Lisp_Int, print integers
as characters when Vinteger_output_format is Qt, and in hex format
when Vinteger_output_format is 16.
(Vinteger_output_format): New variable.

* test/src/print-tests.el (print-integer-output-format): New test.
doc/lispref/streams.texi
etc/NEWS
src/print.c
test/src/print-tests.el