]> git.eshelyaron.com Git - emacs.git/commit
Improve octal-escape output in bool vectors and strings
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Mar 2018 01:58:26 +0000 (17:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Mar 2018 02:16:43 +0000 (18:16 -0800)
commita4605cd60d79e5dc050d722f8c4360f11ce65232
tree72e3931ea034c261bfe61c37b40ce1afceb1f0f6
parentde92605038763d7f970891a8cc0edc0e106ed267
Improve octal-escape output in bool vectors and strings

* src/print.c (octalout): New function.
(print_vectorlike): When printing bool vectors, use
octal escapes for control characters when
print-escape-control-characters is non-nil, so that
the printed representation avoids encoding issues.
Rename locals to avoid byte-vs-char confusion.
(print_object): Don't output unnecessary zeros when
printing octal escapes.  Simplify by using octalout.
src/print.c