From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Mon, 2 May 2016 14:55:17 +0000 Message-ID: <20160502145517.GA5357@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1462202806 16091 80.91.229.3 (2 May 2016 15:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 May 2016 15:26:46 +0000 (UTC) To: 23425@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 02 17:26:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axFjy-000872-7s for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 May 2016 17:26:30 +0200 Original-Received: from localhost ([::1]:37231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFju-0004gx-FG for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 May 2016 11:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFjk-0004UT-HK for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axFjY-0007B3-Q5 for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:26:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFjY-0007A7-Mx for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:26:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axFjW-0004uh-8g for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:26: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: Mon, 02 May 2016 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146220270918820 (code B ref -1); Mon, 02 May 2016 15:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2016 15:25:09 +0000 Original-Received: from localhost ([127.0.0.1]:34004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axFie-0004tU-Ra for submit@debbugs.gnu.org; Mon, 02 May 2016 11:25:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axFid-0004sy-Kk for submit@debbugs.gnu.org; Mon, 02 May 2016 11:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axFiP-0006hj-5R for submit@debbugs.gnu.org; Mon, 02 May 2016 11:24:59 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFiP-0006gY-2C for submit@debbugs.gnu.org; Mon, 02 May 2016 11:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFiD-0002gP-DU for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:24:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axFhy-0006Xw-2i for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:24:33 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:37242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axFhx-0006Ti-Pb for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:24:25 -0400 Original-Received: (qmail 36388 invoked by uid 3782); 2 May 2016 15:24:15 -0000 Original-Received: from acm.muc.de (p548A435F.dip0.t-ipconnect.de [84.138.67.95]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 02 May 2016 17:24:14 +0200 Original-Received: (qmail 5409 invoked by uid 1000); 2 May 2016 14:55:17 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:117572 Archived-At: Hello, Emacs. In the following function: (defun replay-parse-state-state () (message (concat "(setq " (mapconcat (lambda (arg) (format "%s %s%s" (car arg) (if (atom (cdr arg)) "" "'") <================== (if (markerp (cdr arg)) (format "(copy-marker %s)" (marker-position (cdr arg))) (cdr arg)))) c-parse-state-state " ") ")"))) , the quote mark on the marked line is an ASCII quote, 0x27. When this function runs in the Emacs master branch under X-Windows, the output of this quote gets corrupted into a curly quote, as follows: | v (setq c-state-cache ’((32429 . 33731) 795 365) c-state-cache-good-pos 33731 c-state-nonlit-pos-cache ’(53334 50334 47334 44334 41334 38334 35334 32334 29099 26099 23099 20099 17099 13993 10731 7641) c-state-nonlit-pos-cache-limit 53334 c-state-semi-nonlit-pos-cache ’(32334 29099 26099 23099 20099 17099 13993 10731 7641) c-state-semi-nonlit-pos-cache-limit 32334 c-state-brace-pair-desert nil c-state-point-min 1 c-state-point-min-lit-type nil c-state-point-min-lit-start nil c-state-min-scan-pos 1 c-state-old-cpp-beg nil c-state-old-cpp-end nil c-parse-state-point 33733) When this output is fed back into Emacs with M-:, it produces an obscure error message. This has wasted a lot of time identifying the problem, and fruitlessly searching for a solution in the Emacs and Elisp manuals, etc. This is a bug. If a constant ASCII quote is presented to `message' or `format', it should be processed as such. This bug might exist in the emacs-25 branch, too. If so, could it be corrected there too, please, before the release? -- Alan Mackenzie (Nuremberg, Germany).