GNU bug report logs -
#27270
display-raw-bytes-as-hex generates ambiguous output for Emacs strings
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Wed, 7 Jun 2017 03:59:01 UTC
Severity: wishlist
Tags: moreinfo
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 27270 <at> debbugs.gnu.org (full text, mbox):
On 06/06/2017 10:17 PM, Eli Zaretskii wrote:
> What do you mean by "Emacs strings"?
I meant that if I prefer hex to octal for buffer escapes, then when I
type this into *scratch*:
(format "J%cK" ?\u0080) C-j
I almost surely would prefer to see the result displayed as hexadecimal
than as "J\200K" (the current behavior). People who prefer hex in one
place are quite likely to prefer it in the other.
Here's another suggestion for the buffer problem: separate problematic
character pairs by "\ " in the buffer display. That way, my test case
would be displayed this way in a buffer;
x\x90\ 5y
and this will work as expected when cut and pasted into a string, due to
the backslash-space syntax already supported for strings. This buffer
syntax would be less confusing than the "x\x905y" syntax that is
currently used. Under this approach character pair XY is considered to
be problematic if X is displayed with a hexadecimal escape and Y is a
hexadecimal digit.
This bug report was last modified 3 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.