GNU bug report logs - #18909
24.4.50; unexpected (prin1-to-string '(foo "bar") t)

Previous Next

Package: emacs;

Reported by: Oleh <ohwoeowho <at> gmail.com>

Date: Fri, 31 Oct 2014 15:41:02 UTC

Severity: minor

Tags: notabug

Found in version 24.4.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Oleh <ohwoeowho <at> gmail.com>, 18909 <at> debbugs.gnu.org
Subject: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t)
Date: Fri, 09 Feb 2018 22:10:56 -0500
tags 18909 notabug
close 18909
quit

Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Oleh <ohwoeowho <at> gmail.com> writes:
>
>> 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).
>
> "This function outputs quoting characters when necessary to make output
> that `read' can handle, whenever possible, unless the optional second
> argument NOESCAPE is non-nil."
>
> Escaping is about _all_ quotation, not only the backslash.  It's the
> difference between prin1 and princ.

Therefore closing as notabug.




This bug report was last modified 7 years and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.