From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Oleh <ohwoeowho@gmail.com>
Cc: 18909@debbugs.gnu.org
Subject: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t)
Date: Fri, 31 Oct 2014 14:16:27 -0400 [thread overview]
Message-ID: <jwvzjccxg2p.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAA01p3ri6Co4fxXK7BdYr9buefTK2v1Wqn9==LxMhjyYSo6sJg@mail.gmail.com> (Oleh's message of "Thu, 30 Oct 2014 17:58:39 +0100")
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
next prev parent reply other threads:[~2014-10-31 18:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 16:58 bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t) Oleh
2014-10-31 18:16 ` Stefan Monnier [this message]
2014-10-31 19:21 ` Andreas Schwab
2018-02-10 3:10 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvzjccxg2p.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=18909@debbugs.gnu.org \
--cc=ohwoeowho@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.