From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Tue, 06 Jun 2017 10:21:30 +0200 Message-ID: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1496737313 4873 195.159.176.226 (6 Jun 2017 08:21:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2017 08:21:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Alan Mackenzie , 23425@debbugs.gnu.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 06 10:21:47 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 1dI9kH-0000jm-78 for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2017 10:21:45 +0200 Original-Received: from localhost ([::1]:36781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dI9kJ-00086d-AQ for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2017 04:21:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dI9kC-00086N-Lc for emacs-devel@gnu.org; Tue, 06 Jun 2017 04:21:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dI9k7-00066G-O7 for emacs-devel@gnu.org; Tue, 06 Jun 2017 04:21:40 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:37970 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dI9k7-00065I-Gq for emacs-devel@gnu.org; Tue, 06 Jun 2017 04:21:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BC9A0AD20; Tue, 6 Jun 2017 08:21:30 +0000 (UTC) X-Yow: I demand IMPUNITY! In-Reply-To: (Paul Eggert's message of "Mon, 5 Jun 2017 17:14:37 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 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:215468 Archived-At: On Jun 05 2017, Paul Eggert wrote: >>> Elisp code needed to use >>> (message "%s" STR) even before the change you're objecting to, >> >> Did it? When and why? > > Yes, because one can=E2=80=99t pass arbitrary strings to the message fu= nction and > expect them to be displayed as-is. Another bad argument, because we are talking about format strings, which you cannot be replaced by "%s". >>> (error "Can't find `%s' in %s" thing where))) >>> =3D> (error "Can%'t find %`%s%' in %s" thing where))) A better way would be a new modifier to place quotes around the argument. That's what GCC is using now. Also, contractions like don't should be avoided anyway. Andreas. --=20 Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 "And now for something completely different."