From: Oleh <ohwoeowho@gmail.com>
To: 18909@debbugs.gnu.org
Subject: bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t)
Date: Thu, 30 Oct 2014 17:58:39 +0100 [thread overview]
Message-ID: <CAA01p3ri6Co4fxXK7BdYr9buefTK2v1Wqn9==LxMhjyYSo6sJg@mail.gmail.com> (raw)
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
next reply other threads:[~2014-10-30 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 16:58 Oleh [this message]
2014-10-31 18:16 ` bug#18909: 24.4.50; unexpected (prin1-to-string '(foo "bar") t) Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA01p3ri6Co4fxXK7BdYr9buefTK2v1Wqn9==LxMhjyYSo6sJg@mail.gmail.com' \
--to=ohwoeowho@gmail.com \
--cc=18909@debbugs.gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).