From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27270: display-raw-bytes-as-hex generates ambiguous output for Emacs strings Date: Thu, 08 Jun 2017 22:56:21 +0300 Message-ID: <83shja6yoq.fsf@gnu.org> References: <29d6844f-2f6f-11c1-7877-a9d169e613f8@cs.ucla.edu> <83tw3s8jhr.fsf@gnu.org> <1c05b888-0c4a-05c8-248a-6e550637fff4@cs.ucla.edu> <8737bbxp6a.fsf@users.sourceforge.net> <2d5a8cd8-0884-bc1e-4298-a84dca61acbf@cs.ucla.edu> <831squ8no8.fsf@gnu.org> <93d9c575-4eb2-ea9e-d998-a8f3cff33a1e@cs.ucla.edu> <83y3t271ar.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496951830 10740 195.159.176.226 (8 Jun 2017 19:57:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2017 19:57:10 +0000 (UTC) Cc: 27270@debbugs.gnu.org, v.schneidermann@gmail.com, npostavs@users.sourceforge.net To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 08 21:57:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ3YH-0002WJ-Sj for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 21:57:05 +0200 Original-Received: from localhost ([::1]:51261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3YN-0005IV-33 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 15:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3YH-0005IE-0w for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 15:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ3YE-0007iH-Bf for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 15:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32811) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJ3YE-0007iB-7Z for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 15:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJ3YD-0002EL-UD for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 15:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2017 19:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27270-submit@debbugs.gnu.org id=B27270.14969518048545 (code B ref 27270); Thu, 08 Jun 2017 19:57:01 +0000 Original-Received: (at 27270) by debbugs.gnu.org; 8 Jun 2017 19:56:44 +0000 Original-Received: from localhost ([127.0.0.1]:35488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ3Xw-0002Dk-CI for submit@debbugs.gnu.org; Thu, 08 Jun 2017 15:56:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ3Xu-0002DV-8l for 27270@debbugs.gnu.org; Thu, 08 Jun 2017 15:56:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ3Xo-0007eG-74 for 27270@debbugs.gnu.org; Thu, 08 Jun 2017 15:56:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3Xg-0007dX-Tr; Thu, 08 Jun 2017 15:56:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1564 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dJ3Xf-0001kD-Go; Thu, 08 Jun 2017 15:56:28 -0400 In-reply-to: (message from Paul Eggert on Thu, 8 Jun 2017 12:43:38 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:133407 Archived-At: > Cc: npostavs@users.sourceforge.net, 27270@debbugs.gnu.org, > v.schneidermann@gmail.com > From: Paul Eggert > Date: Thu, 8 Jun 2017 12:43:38 -0700 > > On 06/08/2017 11:59 AM, Eli Zaretskii wrote: > > That's a different issue. You said "\x905" was wrong visually, so I > > asked how is that different, visually, from "\2205". > > It's wrong visually, because I know the syntax for strings in Emacs > Lisp, and I know that "\x905" is supposed to be a 1-character string > whereas "\2205" is a two-character string. How do you know "\2205" is a two character string? What about this: (aset printable-chars #x3fffc nil) C-j (format "%c%c" #x3fffc ?5) C-j Where does the octal codepoint end now? > > Same thing happens when you copy/paste from an Emacs window which uses > > a display table > > The difference is that I don't use display tables and don't want to use > them. In contrast, I would like to use hexadecimal display, if it worked > as well as octal does (which it does not). Then we need to code a separate feature in the Lisp reader, I think.