From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7524: 24.0.50; backquote converts newlines in strings to "\n" Date: Wed, 01 Dec 2010 11:04:19 -0500 Message-ID: References: <9C4145152E1B4A9890C4A8DA520A51ED@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291220125 26284 80.91.229.12 (1 Dec 2010 16:15:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 16:15:25 +0000 (UTC) Cc: 7524@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 17:15:20 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNpKv-0002Ch-Jw for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 17:15:18 +0100 Original-Received: from localhost ([127.0.0.1]:34078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNpKu-0005Cx-Ld for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 11:15:16 -0500 Original-Received: from [140.186.70.92] (port=42854 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNpKl-0005Ab-6p for bug-gnu-emacs@gnu.org; Wed, 01 Dec 2010 11:15:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNpKj-00077o-NH for bug-gnu-emacs@gnu.org; Wed, 01 Dec 2010 11:15:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNpKj-00077i-Ld for bug-gnu-emacs@gnu.org; Wed, 01 Dec 2010 11:15:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PNp5B-0006GP-K5; Wed, 01 Dec 2010 10:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Dec 2010 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7524-submit@debbugs.gnu.org id=B7524.129121913324063 (code B ref 7524); Wed, 01 Dec 2010 15:59:01 +0000 Original-Received: (at 7524) by debbugs.gnu.org; 1 Dec 2010 15:58:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNp52-0006G4-Op for submit@debbugs.gnu.org; Wed, 01 Dec 2010 10:58:52 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNp51-0006Fq-O6 for 7524@debbugs.gnu.org; Wed, 01 Dec 2010 10:58:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiEHAHMB9kxMCqFw/2dsb2JhbACiDIEHcsQyhUcEhF6Ncg X-IronPort-AV: E=Sophos;i="4.59,283,1288584000"; d="scan'208";a="84232678" Original-Received: from 76-10-161-112.dsl.teksavvy.com (HELO ceviche.home) ([76.10.161.112]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 01 Dec 2010 11:04:19 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 2461D661BF; Wed, 1 Dec 2010 11:04:19 -0500 (EST) In-Reply-To: <9C4145152E1B4A9890C4A8DA520A51ED@us.oracle.com> (Drew Adams's message of "Tue, 30 Nov 2010 22:10:03 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 01 Dec 2010 10:59:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42060 Archived-At: > Evaluate this: > `("Foo" . (lambda () > "Four score and seven years ago > Our forefathers brought forth etc. > Etc., etc., etc." > (message "HOWDY"))) > That doc string is a literal string with two embedded newline chars. > Evaluation converts each of those chars to a string of two chars: "\n": > ("Foo" lambda nil "Four score and seven years ago\nOur forefathers brought forth > etc.\nEtc., etc., etc." > (message "Howdy")) It's got nothing to do with backquote. It's just that "foo bar" is just another way to write "foo\nbar": the Elisp reader will return the exact same string in both cases. So the Elisp printer can't know which one was used originally and has to choose arbitrarily which form to output. > Shouldn't happen. Unavoidable. Tho you do get to choose somewhat the print format by choosing between prin1 and princ (aka %s and %S in format). > (This is particularly messy when used in defcustom values.) I don't know what you're referring to. I'll keep the bug open for now, assuming that the defcustom issue will be the actual bug. Stefan