[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: buffer-string considered as a Bad Thing.
From:
Andreas Schwab
Subject:
Re: buffer-string considered as a Bad Thing.
Date:
2024年6月04日 23:24:36 +0200
User-agent:
Gnus/5.13 (Gnus v5.13)
On Jun 04 2024, Alan Mackenzie wrote:
> That may well be, but the contents of that buffer don't reflect the
> contents of the original string which was printed by pp.
pp produces a *quoted* printed representation of the argument.
ELISP> (read (pp-to-string "foo \"bar\" baz"))
"foo \"bar\" baz"
If you want to print the literal contents of a string use princ.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."