From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Sat, 3 Jun 2017 21:07:47 +0000 Message-ID: <20170603210747.GC2130@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 1496524145 478 195.159.176.226 (3 Jun 2017 21:09:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 21:09:05 +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: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 03 23:09:02 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dHGIA-0008Is-36 for ged-emacs-devel@m.gmane.org; Sat, 03 Jun 2017 23:09:02 +0200 Original-Received: from localhost ([::1]:54840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGIF-0008Vh-5r for ged-emacs-devel@m.gmane.org; Sat, 03 Jun 2017 17:09:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGI2-0008Va-Sr for emacs-devel@gnu.org; Sat, 03 Jun 2017 17:08:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHGHx-0000T8-VI for emacs-devel@gnu.org; Sat, 03 Jun 2017 17:08:54 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:44078 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dHGHx-0000RG-JC for emacs-devel@gnu.org; Sat, 03 Jun 2017 17:08:49 -0400 Original-Received: (qmail 40587 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-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215435 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).