From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Trapuzzano Newsgroups: gmane.emacs.bugs Subject: bug#15747: Patch to optionally display raw bytes in hexadecimal Date: Tue, 29 Oct 2013 13:18:26 -0400 Message-ID: <87r4b49esd.fsf@nbtrap.com> References: <87hac0uqtk.fsf@nbtrap.com> <83vc0gdnej.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383067155 19124 80.91.229.3 (29 Oct 2013 17:19:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 17:19:15 +0000 (UTC) Cc: 15747@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 18:19:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VbCwn-0001J9-KJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 18:19:17 +0100 Original-Received: from localhost ([::1]:48520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCwn-0006PM-0N for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 13:19:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCwf-0006OE-8r for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:19:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbCwZ-0001Jh-3a for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:19:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCwY-0001JW-O9 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VbCwY-00064B-5G for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Trapuzzano Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2013 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15747-submit@debbugs.gnu.org id=B15747.138306711523277 (code B ref 15747); Tue, 29 Oct 2013 17:19:02 +0000 Original-Received: (at 15747) by debbugs.gnu.org; 29 Oct 2013 17:18:35 +0000 Original-Received: from localhost ([127.0.0.1]:51413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbCw7-00063N-E2 for submit@debbugs.gnu.org; Tue, 29 Oct 2013 13:18:35 -0400 Original-Received: from outbound-ss-1429.hostmonster.com ([74.220.221.129]:43270) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VbCw4-00063D-HW for 15747@debbugs.gnu.org; Tue, 29 Oct 2013 13:18:33 -0400 Original-Received: (qmail 10251 invoked by uid 0); 29 Oct 2013 17:18:31 -0000 Original-Received: from unknown (HELO host393.hostmonster.com) (66.147.240.193) by oproxy9.mail.unifiedlayer.com with SMTP; 29 Oct 2013 17:18:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbtrap.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=kzUuR5jcSmanHJyeHWumjIyEBjQThf+G+rPlYST2yVY=; b=neQ72Sg7BR2IvNutAJiDpy+purDvRR5RLcmVeeBp+9hd0kZzCcRiGSU8W9Q7dzWYSXdAUDfIDiklY0gDATSopbMZmg5MnHlfcUJ39YAFmKb6bJAVLexpoos2n25rKopQ; Original-Received: from [50.90.253.209] (port=57796 helo=Nathan-GNU) by host393.hostmonster.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1VbCw1-0006HX-SU; Tue, 29 Oct 2013 11:18:30 -0600 In-Reply-To: <83vc0gdnej.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 29 Oct 2013 18:58:44 +0200") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-Identified-User: {1585:host393.hostmonster.com:nbtrapco:nbtrap.com} {sentby:smtp auth 50.90.253.209 authed with nbtrap@nbtrap.com} X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79754 Archived-At: Eli Zaretskii writes: > For some "symmetry" with read-quoted-char-radix, perhaps make the name > something like display-raw-bytes-radix, and make the feature accept > the same values (i.e., 8. 10, and 16). How do you suppose decimal escapes should be displayed so as to be distinguishable from octal escapes? Left-padding them with 0s, which typically indicates octal, seems like a bad idea; not padding them at all would result in variable-width escapes, which seems like another bad idea; and finally, many decimal escapes with three significant digits, e.g. "\255", look like they may as well be octal. The benefit to the way the hex escapes are implemented is that (1) they are distinguishable from octal, thanks to the leading "x"; and (2) a given hex escape sequence is the same width as its corresponding octal escape, e.g. "\017" and "\x0F". I don't see how these properties could be retained with decimal escapes.