From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: show binary in hexidecimal not octal Date: Wed, 27 Dec 2006 10:45:13 -0700 Organization: IHS Message-ID: References: <87irfzn2ne.fsf@jidanni.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167241663 29332 80.91.229.10 (27 Dec 2006 17:47:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Dec 2006 17:47:43 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 27 18:47:41 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzcsO-0000xu-Gb for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2006 18:47:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzcsN-0005Zx-T0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Dec 2006 12:47:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GzcrO-0004DB-6l for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2006 12:46:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GzcrM-00049S-3K for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2006 12:46:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzcrL-00048X-9m for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2006 12:46:35 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GzcrK-0000KL-Cx for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2006 12:46:34 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gzcr7-0003Or-Ag for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2006 18:46:21 +0100 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Dec 2006 18:46:21 +0100 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Dec 2006 18:46:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: <87irfzn2ne.fsf@jidanni.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:15484 Archived-At: Dan Jacobson wrote: > In emacs binary content is shown in octal notation. > There is no way to make it shown in hexidecimal notation. Sure there is: (defvar hex-display-table-prefix "\\") (defvar hex-display-table-suffix nil) (defvar hex-display-table (let ((table (make-display-table)) (char ?\x00)) (while (<= char ?\xFF) (unless (equal char ?\n) (aset table char (vconcat hex-display-table-prefix (format "%02X" char) hex-display-table-suffix))) (setq char (1+ char))) table)) (setq buffer-display-table hex-display-table) > No I'm not talking about hexl mode or whatever. -- Kevin