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, 31 May 2017 16:26:12 -0700 Organization: UCLA Computer Science Department Message-ID: <07bf5f9d-e8cd-a4d9-1843-b488bfe0b92c@cs.ucla.edu> References: <83twidj0tj.fsf@gnu.org> <20160504164849.GA31717@acm.fritz.box> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------B9887C6A3B39DB9820F00B46" X-Trace: blaine.gmane.org 1496273231 30475 195.159.176.226 (31 May 2017 23:27:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 May 2017 23:27:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: 23425@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 01 01:27:07 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 1dGD19-0007hf-FB for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jun 2017 01:27:07 +0200 Original-Received: from localhost ([::1]:34336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGD1E-0002H1-Ok for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 May 2017 19:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGD18-0002Gj-Sq for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 19:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGD14-0007Cq-RK for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 19:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGD14-0007Cm-Nr for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 19:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dGD14-0000pY-IS for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 19:27:02 -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, 31 May 2017 23:27: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.14962731823147 (code B ref 23425); Wed, 31 May 2017 23:27:02 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 31 May 2017 23:26:22 +0000 Original-Received: from localhost ([127.0.0.1]:48121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGD0P-0000oh-TK for submit@debbugs.gnu.org; Wed, 31 May 2017 19:26:22 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGD0O-0000oT-3j for 23425@debbugs.gnu.org; Wed, 31 May 2017 19:26:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2DC10160052; Wed, 31 May 2017 16:26:14 -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 084BhPdbxNpB; Wed, 31 May 2017 16:26:13 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 52EC61600A7; Wed, 31 May 2017 16:26:13 -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 THBhEq7t7OYZ; Wed, 31 May 2017 16:26:13 -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 E0B49160052; Wed, 31 May 2017 16:26:12 -0700 (PDT) In-Reply-To: <20170531212452.GA3789@acm.fritz.box> 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:133112 Archived-At: This is a multi-part message in MIME format. --------------B9887C6A3B39DB9820F00B46 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 05/31/2017 02:24 PM, Alan Mackenzie wrote: > This bug has not been fixed. Oh, sorry, I misunderstood your earlier comments. I reopened the bug. > The only documentation for this feature is obscure and hidden. There > is nothing in `message''s doc string which explicitly states likely > unwanted replacement of characters takes place; just a puzzling > "exception proves the rule" paragraph. I installed the attached patch into master, which I hope makes that doc string sufficiently clear. I'd rather not change the Emacs default behavior, though, for reasons already discussed. --------------B9887C6A3B39DB9820F00B46 Content-Type: text/x-patch; name="0001-src-editfns.c-Fmessage-Improve-doc-string-Bug-23425-.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-src-editfns.c-Fmessage-Improve-doc-string-Bug-23425-.pa"; filename*1="tch" >From 74908f08ab6a77311e4e3c688fcd354e8beb8d97 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 31 May 2017 16:22:24 -0700 Subject: [PATCH] * src/editfns.c (Fmessage): Improve doc string (Bug#23425#130). --- src/editfns.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index a51670c..89a6724 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3734,11 +3734,10 @@ In batch mode, the message is printed to the standard error stream, followed by a newline. The first argument is a format control string, and the rest are data -to be formatted under control of the string. See `format-message' for -details. - -Note: (message "%s" VALUE) displays the string VALUE without -interpreting format characters like `%', `\\=`', and `\\=''. +to be formatted under control of the string. Percent sign (%), grave +accent (\\=`) and apostrophe (\\=') are special in the format; see +`format-message' for details. To display STRING without special +treatment, use (message "%s" STRING). If the first argument is nil or the empty string, the function clears any existing message; this lets the minibuffer contents show. See -- 2.9.4 --------------B9887C6A3B39DB9820F00B46--