aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVasilij Schneidermann2017-06-01 21:25:58 +0300
committerEli Zaretskii2017-06-01 21:25:58 +0300
commitcb9aa3515ac00826fd27ade7dfc829134ed38acc (patch)
tree1363798d47fc5a7433519129fb726651a4c12a2e /doc
parente5de79992a22f2932abb5f1f2600f576a60ae6ef (diff)
downloademacs-cb9aa3515ac00826fd27ade7dfc829134ed38acc.tar.gz
emacs-cb9aa3515ac00826fd27ade7dfc829134ed38acc.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/display.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index a0d0792eacc..c4554eb3187 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1763,3 +1763,9 @@ itself, in pixels; the default is 2.
1763in text that is hard to read. Call the function 1763in text that is hard to read. Call the function
1764@code{tty-suppress-bold-inverse-default-colors} with a non-@code{nil} 1764@code{tty-suppress-bold-inverse-default-colors} with a non-@code{nil}
1765argument to suppress the effect of bold-face in this case. 1765argument to suppress the effect of bold-face in this case.
1766
1767@vindex display-raw-bytes-as-hex
1768 Raw bytes are displayed in octal format by default, for example a
1769byte with a decimal value of 128 is displayed as @code{\200}. To
1770change display to the hexadecimal format of @code{\x80}, set the
1771variable @code{display-raw-bytes-as-hex} to @code{t}.