bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Noam Postavsky
Subject: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t)
Date: Fri, 09 Feb 2018 22:10:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

tags 18909 notabug
close 18909
quit

Andreas Schwab <address@hidden> writes:

> Oleh <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]