From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Newsgroups: gmane.emacs.bugs Subject: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t) Date: Thu, 30 Oct 2014 17:58:39 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1414776227 30672 80.91.229.3 (31 Oct 2014 17:23:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 17:23:47 +0000 (UTC) To: 18909@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 18:23:39 2014 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 1XkFvG-0006PV-ME for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 18:23:38 +0100 Original-Received: from localhost ([::1]:39817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkFvG-0008GE-7z for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 13:23:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEL2-00046J-CX for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:43:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkEJz-0003bJ-0s for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:42:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEJy-0003bF-Uv for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XkEJy-0003iJ-L9 for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Oct 2014 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18909 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.141477004014193 (code B ref -1); Fri, 31 Oct 2014 15:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2014 15:40:40 +0000 Original-Received: from localhost ([127.0.0.1]:41357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkEJc-0003gq-2U for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:40:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52663) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkEJX-0003gP-KY for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:40:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkEIe-0002bV-TT for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:40:30 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEIe-0002bM-Qc for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:39:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEH2-0005mE-AW for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:39:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjt3Y-0008KY-DX for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2014 12:58:44 -0400 Original-Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:48953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjt3Y-0008KT-7x for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2014 12:58:40 -0400 Original-Received: by mail-ig0-f176.google.com with SMTP id l13so4036443iga.3 for ; Thu, 30 Oct 2014 09:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mQKs+AM6x0KC874d5oDykUyaZqs8toAeWoUmbLw/EZo=; b=E/7ipUp2spHTOkhr+FLudsXzi9VdzL2BXSwQNkDsoFKRzui5/n5WQgl0zwBAMkBMiH ZuQwHyo7p6ODPgZ57vbG/SUspYQJQQZLQoLOa+dfkvwGsZdCAHV7AlhrW3p//7UtmLAJ KFlnojdSW/13fwZxDiSImRtrxRJjk5eOVmWU4zwGx0mZRq/0rMzHMnbl1rEeWAMVrgG3 C4yRBNudnF9wU4+V8KplzmWD0JVM/vAxBV+KH4PJ4wOVQU2WhGQalZR1AG6sBf0pSKxV 1kXzRLPcGvlRuHRv+mFHgArVXG+O3Xz6noEA3YfFgji7aeo4nnALRlspys9Wur+cXBwo ZPzA== X-Received: by 10.43.62.75 with SMTP id wz11mr3093712icb.95.1414688319171; Thu, 30 Oct 2014 09:58:39 -0700 (PDT) Original-Received: by 10.64.13.179 with HTTP; Thu, 30 Oct 2014 09:58:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95305 Hi, To my surprise, (prin1-to-string '(foo "bar") t) evaluates as "(foo bar)". This seems like a bug to me, since it doesn't conform to the doc (it's not the printed representation of the OBJECT any more). I want to use the NOESCAPE option to obtain instead of: (prin1-to-string '(foo.bar)) => "(foo\\.bar)" this output: (prin1-to-string '(foo.bar) t) => "(foo.bar)" But the downside is that the strings are unquoted as well: (prin1-to-string '(foo "bar") t) => "(foo bar)" Please let me know if it's a bug or not, and maybe suggest how I can obtain the behavior of (prin1-to-string x t) without unquoting the strings in x. regards, Oleh