bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: show binary in hexidecimal not octal


From: Dan Jacobson
Subject: Re: show binary in hexidecimal not octal
Date: Thu, 04 Jan 2007 02:32:24 +0800

Do (compile "perl -e 'for(0..99999){print chr}' 2>&-" nil)

I see ^@^A^B...^Z^[^\^]^^^_ !"#$%&'()*+,-./01...wxyz{|}~^?
\200\201\202\203\204...\374\375\376\377 then Unicode etc.

I am happy with what I see, except that I want the octal shown in hex
instead. I.e. I am only unhappy about \200...\377.

Kevin> (setq buffer-display-table ...

I believe the solution instead lies in a new variable that controls a
deeper down C code item, without the user needing to fiddle with
buffer-display-table nor standard-display-table etc.

No need to target any specific characters, all I am saying is deep
down when emacs feels the urge to send a octal representation to the
screen, it sends instead a hex representation.

I am saying "emacs old buddy, you are doing a perfect job at selecting
what bytes or characters or whatever to send to the screen as (the
four byte) \222, etc. Now just allow the user the choice of how he
wants them shown: hex, octal (current), binary, decimal, etc."

Also there should be a way to paste the e.g., \222 that we see into another
buffer as the four bytes, not one, without having to resort to emacs
-nw and the mouse.

(By the way (compile "perl -e 'for(0..99999){print chr}' 2>&-" nil)
causes error in process filter: font-lock-fontify-keywords-region:
Stack overflow in regexp matcher. Probably for good reason. But that
is not what I'm worried about here.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]