Honor print-charset-text-property value of nil (Bug#31376)
commit6f037f427a25160168e842bff0d12b816d69067d
authorNoam Postavsky <npostavs@gmail.com>
Fri, 11 May 2018 17:44:46 +0000 (11 13:44 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 23 May 2018 11:53:58 +0000 (23 07:53 -0400)
treefdcb0290e8f9e1a957ffab079b1f4d2f9bfdeb34
parent0d224e82411d9471f03fc339890d6a2952b5e239
Honor print-charset-text-property value of nil (Bug#31376)

* src/print.c (print_check_string_charset_prop): Move check
for nil Vprint_charset_text_property from here...
(print_prune_string_charset): ... to here.
(syms_of_print) <print-charset-text-property>: Clarify that any
non-boolean values are treated the same as `default'.
* doc/lispref/streams.texi (Output Variables): Add
print-prune-string-charset.
* test/src/print-tests.el (print-charset-text-property-nil)
(print-charset-text-property-default)
(print-charset-text-property-t): New tests.
(print-tests--prints-with-charset-p): New helper function.
doc/lispref/streams.texi
src/print.c
test/src/print-tests.el