[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: choose radix for control and non displayable characters
From: |
Stefan Monnier |
Subject: |
Re: choose radix for control and non displayable characters |
Date: |
Mon, 17 Jan 2005 18:42:50 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
> Could someone consider about to add a variable to choose that
> display radix ? It is easily feasible ?
No need to make the C code more complex:
(let ((n 128))
(while (< n 256)
(aset buffer-display-table n (format "\\x%2x" n))
(setq n (1+ n))))
Let's not forget that chars in the 128-255 range should only ever appear in
buffers containing binary data (and otherwise in cases where there was
a problem, such as when an email is badly labelled).
Stefan