From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Wed, 7 Jun 2017 11:17:24 -0700 Organization: UCLA Computer Science Department Message-ID: <72f5a745-0294-7c49-1b21-e6178aa31b5a@cs.ucla.edu> References: <17c1c00d-a275-5e61-0c47-6872a64a9347@cs.ucla.edu> <20170531212452.GA3789@acm.fritz.box> <07bf5f9d-e8cd-a4d9-1843-b488bfe0b92c@cs.ucla.edu> <20170602210209.GA3570@acm.fritz.box> <11c0adfb-7fdd-8d28-1a47-869e3e7043ea@cs.ucla.edu> <20170603205331.GA2130@acm.fritz.box> <20170605162737.GA30946@acm.fritz.box> <20170605203753.GB30946@acm.fritz.box> <39cfc8be-8233-7f03-561c-8fffce0a6c0c@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1496859492 27668 195.159.176.226 (7 Jun 2017 18:18:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Jun 2017 18:18:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: Alan Mackenzie , 23425@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 07 20:18: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 1dIfWx-0006v6-UK for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jun 2017 20:18:08 +0200 Original-Received: from localhost ([::1]:45631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIfX3-0006Bn-Cm for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jun 2017 14:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIfWv-0006Ae-DA for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 14:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIfWs-0006wN-3o for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 14:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIfWr-0006wF-WB for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dIfWr-0005e3-M6 for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 14:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jun 2017 18:18:01 +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.149685945321665 (code B ref 23425); Wed, 07 Jun 2017 18:18:01 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 7 Jun 2017 18:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:33528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIfWO-0005dM-TN for submit@debbugs.gnu.org; Wed, 07 Jun 2017 14:17:33 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIfWN-0005d8-Tv for 23425@debbugs.gnu.org; Wed, 07 Jun 2017 14:17:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8F107160155; Wed, 7 Jun 2017 11:17:25 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4Gwl83AAc27z; Wed, 7 Jun 2017 11:17:24 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D5740160157; Wed, 7 Jun 2017 11:17:24 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nrS6eTarhZc3; Wed, 7 Jun 2017 11:17:24 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8177A160155; Wed, 7 Jun 2017 11:17:24 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:133377 Archived-At: [dropping emacs-devel on Drew's request] On 06/07/2017 12:44 AM, Andreas Schwab wrote: > That doesn't make sense, since the first argument of message is a=20 > format string. Sorry, I=E2=80=99ve lost context. I wrote that (message "%s" STR) was nee= ded=20 even before Emacs 25 for arbitrary strings STR, to avoid unwanted=20 interpretation of characters in STR. Alan was dubious and wanted to know=20 when and why that occurred. I gave a example from 1999 and said the=20 =E2=80=9Cwhy=E2=80=9D was because =E2=80=9Cone can=E2=80=99t pass arbitra= ry strings to the message=20 function and expect them to be displayed as-is=E2=80=9D. You objected to = this=20 justification, writing =E2=80=9Cwe are talking about format strings, whic= h you=20 cannot be replaced by "%s".=E2=80=9D This objection was unclear and the=20 subsequent discussion (from my point of view, anyway) has gone off the=20 rails. Perhaps you could clarify the objection by giving specific code=20 that exemplifies the problem you are thinking of, presumably a problem=20 that cannot easily be addressed by using (message "%s" ...).