Add customizable to display raw bytes as hex
commit7c9ac111c5e5d92e620b666893993d5dc562e483
authorEli Zaretskii <eliz@gnu.org>
Thu, 1 Jun 2017 18:12:39 +0000 (1 21:12 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 1 Jun 2017 18:12:39 +0000 (1 21:12 +0300)
tree1363798d47fc5a7433519129fb726651a4c12a2e
parente922e3c7a5c895f3875e7eb4670618891a4fd312
Add customizable to display raw bytes as hex

* src/xdisp.c (get_next_display_element): Dispatch used format string
for unprintables based on new display-raw-bytes-as-hex variable.
(display-raw-bytes-as-hex): New variable.  (Bug#27122)

* lisp/cus-start.el: Add defcustom form for display-raw-bytes-as-hex.

* doc/emacs/display.texi: Document the new variable.
* etc/NEWS: Mention display-raw-bytes-as-hex.

* test/manual/redisplay-testsuite.el (test-redisplay-5-toggle)
(test-redisplay-5): New tests.
(test-redisplay): Call test-redisplay-5.
doc/emacs/display.texi
etc/NEWS
lisp/cus-start.el
src/xdisp.c
test/manual/redisplay-testsuite.el