From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Followup-To: gmane.emacs.devel Date: Sat, 3 Jun 2017 21:07:47 +0000 Message-ID: <20170603210747.GC2130__22474.335836205$1496524155$gmane$org@acm.fritz.box> References: <83d1p1iwls.fsf@gnu.org> <20160504180417.GB31717@acm.fritz.box> <4019c1e5-36b4-745f-b299-16b074bff81e@cs.ucla.edu> <83zis4h59w.fsf@gnu.org> <51a2ae75-71f7-10f6-ae2a-7c830bdf0a30@cs.ucla.edu> <17c1c00d-a275-5e61-0c47-6872a64a9347@cs.ucla.edu> <20170531212452.GA3789@acm.fritz.box> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1496524155 2477 195.159.176.226 (3 Jun 2017 21:09:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 21:09:15 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: Paul Eggert , 23425@debbugs.gnu.org To: Glenn Morris , emacs-devel@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 23:09:11 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 1dHGIJ-0000Ny-5P for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 23:09:11 +0200 Original-Received: from localhost ([::1]:54841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGIO-00008I-6e for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 17:09:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGIF-00006l-Km for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 17:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHGIA-0000fe-Mx for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 17:09:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51547) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHGIA-0000er-J1 for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 17:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHGIA-0006hr-75 for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2017 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23425-submit@debbugs.gnu.org id=B23425.149652413125763 (code B ref 23425); Sat, 03 Jun 2017 21:09:02 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 3 Jun 2017 21:08:51 +0000 Original-Received: from localhost ([127.0.0.1]:54224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHGHz-0006hT-Fg for submit@debbugs.gnu.org; Sat, 03 Jun 2017 17:08:51 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:44080 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dHGHx-0006hK-KI for 23425@debbugs.gnu.org; Sat, 03 Jun 2017 17:08:50 -0400 Original-Received: (qmail 40607 invoked by uid 3782); 3 Jun 2017 21:08:48 -0000 Original-Received: from acm.muc.de (p4FC46308.dip0.t-ipconnect.de [79.196.99.8]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 03 Jun 2017 23:08:47 +0200 Original-Received: (qmail 2285 invoked by uid 1000); 3 Jun 2017 21:07:47 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:133233 Archived-At: Hello, Glenn. On Thu, Jun 01, 2017 at 12:56:05 -0400, Glenn Morris wrote: > So in your view what needs to happen for this bug to be closed? > As was explained a year ago, change your initial example to (message > "%s" ...) and your issue goes away. No it does not. The issue is that this is a trap waiting to spring and bite hackers. Also the workaround you identify is ugly and irregular - it would involve writing two format strings (one of them being the "%s") to do one `message' invocation. I have identified a regular and rational way to repair the damage, namely to introduce the new %-constructs %` and %', which would invoke quote translation, and would remain compatible with `message' as it was before Emacs-25. -- Alan Mackenzie (Nuremberg, Germany).