From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: show binary in hexidecimal not octal Date: Thu, 04 Jan 2007 02:32:24 +0800 Message-ID: <8764bo0xmv.fsf@jidanni.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167856265 22795 80.91.229.12 (3 Jan 2007 20:31:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 20:31:05 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 21:31:03 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H2ClK-0001ES-PY for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2007 21:31:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2ClK-0007QI-7u for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2007 15:31:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2ClG-0007PD-UI for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2007 15:30:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2ClF-0007OH-8e for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2007 15:30:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2ClE-0007O8-VC for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2007 15:30:57 -0500 Original-Received: from [204.74.68.40] (helo=frodo.hserus.net) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H2ClD-0001T0-TZ for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2007 15:30:56 -0500 Original-Received: from tc218-187-22-213.dialup.dynamic.apol.com.tw ([218.187.22.213]:39551 helo=jidanni1) by frodo.hserus.net with esmtpsa (Cipher TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.62 #1) id 1H2ClQ-0007e6-BJ by authid with plain for ; Wed, 03 Jan 2007 12:31:09 -0800 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15504 Archived-At: 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.)