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: Sat, 10 Jun 2017 10:24:25 +0300 Message-ID: <83h8zo71au.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> <83shja6yoq.fsf@gnu.org> <83r2yt7lad.fsf@gnu.org> <2202b54b-606f-0a10-abf7-5cb1a9164897@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1497079514 15227 195.159.176.226 (10 Jun 2017 07:25:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Jun 2017 07:25:14 +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 Sat Jun 10 09:25:08 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 1dJalf-0003OS-4G for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jun 2017 09:25:07 +0200 Original-Received: from localhost ([::1]:57509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJalh-00087k-BA for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jun 2017 03:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJalb-00087T-Ci for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 03:25:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJala-0002DC-HJ for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 03:25:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJala-0002Cz-Db for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 03:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJalZ-0000Kb-T0 for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 03:25: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: Sat, 10 Jun 2017 07:25: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.14970794971260 (code B ref 27270); Sat, 10 Jun 2017 07:25:01 +0000 Original-Received: (at 27270) by debbugs.gnu.org; 10 Jun 2017 07:24:57 +0000 Original-Received: from localhost ([127.0.0.1]:37726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJalV-0000KF-8f for submit@debbugs.gnu.org; Sat, 10 Jun 2017 03:24:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJalT-0000K3-QL for 27270@debbugs.gnu.org; Sat, 10 Jun 2017 03:24:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJalN-00029O-LL for 27270@debbugs.gnu.org; Sat, 10 Jun 2017 03:24:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJalH-00024p-Go; Sat, 10 Jun 2017 03:24:43 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4111 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dJalG-0007NG-7z; Sat, 10 Jun 2017 03:24:42 -0400 In-reply-to: <2202b54b-606f-0a10-abf7-5cb1a9164897@cs.ucla.edu> (message from Paul Eggert on Fri, 9 Jun 2017 16:44:46 -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:133430 Archived-At: > Cc: npostavs@users.sourceforge.net, 27270@debbugs.gnu.org, > v.schneidermann@gmail.com > From: Paul Eggert > Date: Fri, 9 Jun 2017 16:44:46 -0700 > > The idea is to add a new \X escape for character constants and strings. This > escape would allow at most two hexadecimal digits, rather than the unlimited > number of digits that \x does. For example, the Lisp string "\XABC" would be > equivalent to the Lisp string "\xAB\ C", that is, it would be a two-character > string containing the character U+00AB LEFT POINTING GUILLEMET followed by the > character U+0043 LATIN CAPITAL LETTER C. So your proposal would mean a change to the Lisp reader to support such escapes, right? If so, isn't such a change backward-incompatible? > Also, display-raw-bytes-as-hex would cause raw bytes to be displayed with this > new X escape, rather than with with the x escape. It could only do that for codepoints below 256 decimal, so that limitation should be taken into account when deciding on the proposal.