* choose radix for control and non displayable characters
@ 2005-01-17 15:51 Sébastien Kirche
2005-01-17 23:42 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Kirche @ 2005-01-17 15:51 UTC (permalink / raw)
Hi,
i have looked for a mean to change the radix of control characters and
characters that are not displayable with the current fontset, but it seems
that it is hard-coded (xdisp.c / get_next_display_element() ?).
I think it is some way inconsistent as i can choose the radix for the input
of quoted characters with read-quoted-char-radix.
Could someone consider about to add a variable to choose that display
radix ? It is easily feasible ?
Regards.
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: choose radix for control and non displayable characters
2005-01-17 15:51 choose radix for control and non displayable characters Sébastien Kirche
@ 2005-01-17 23:42 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2005-01-17 23:42 UTC (permalink / raw)
Cc: emacs-devel
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-17 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 15:51 choose radix for control and non displayable characters Sébastien Kirche
2005-01-17 23:42 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.