diff options
| author | Vasilij Schneidermann | 2017-06-01 21:25:58 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-06-01 21:25:58 +0300 |
| commit | cb9aa3515ac00826fd27ade7dfc829134ed38acc (patch) | |
| tree | 1363798d47fc5a7433519129fb726651a4c12a2e /doc | |
| parent | e5de79992a22f2932abb5f1f2600f576a60ae6ef (diff) | |
| download | emacs-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.texi | 6 |
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. | |||
| 1763 | in text that is hard to read. Call the function | 1763 | in 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} |
| 1765 | argument to suppress the effect of bold-face in this case. | 1765 | argument 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 | ||
| 1769 | byte with a decimal value of 128 is displayed as @code{\200}. To | ||
| 1770 | change display to the hexadecimal format of @code{\x80}, set the | ||
| 1771 | variable @code{display-raw-bytes-as-hex} to @code{t}. | ||