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


Message #8 received at 18909 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Oleh <ohwoeowho <at> gmail.com>
Cc: 18909 <at> debbugs.gnu.org
Subject: Re: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t)
Date: Fri, 31 Oct 2014 14:16:27 -0400
I don't think you can get what you want with the current code.
The best you can do is (prin1-to-string '(foo.bar "baz")) and then
do a search-and-replace of the "\\.".  But note that the "." is escaped
this way in order to avoid ambiguity with the "." used to separate the
car from the cdr of a cons cell, so you should not unescape every single
"\\.", only the ones where the reader recognizes the "." has being part
of the symbol.


        Stefan




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.