unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is there something between `prin1-to-string' and `princ'?
@ 2013-09-25 10:33 Thorsten Jolitz
  0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Jolitz @ 2013-09-25 10:33 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

using `prin1-to-string' on a property list gives me:

,-------------------------------------------------------------
| ... :CATEGORY "tmp2" :title (#("C2 " 0 3 (:parent nil))) ...
`-------------------------------------------------------------

using `princ' gives me:

,-----------------------------------
| ... :CATEGORY tmp2 :title (C2) ...
`-----------------------------------

but what I want is either

,-----------------------------------
| ... :CATEGORY "tmp2" :title (C2) ...
`-----------------------------------

or even better

,-----------------------------------
| ... :CATEGORY "tmp2" :title ("C2") ...
`-----------------------------------

but there seems to be no print command or configuration option that
gives me strings quoted, but text without properties at the same time?

PS
this is not about `buffer-substring-no-properties' or so, its about how
to print out a *given* property list in a certain format.

-- 
cheers,
Thorsten





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-25 14:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2838.1380105265.10748.help-gnu-emacs@gnu.org>
2013-09-25 13:06 ` Is there something between `prin1-to-string' and `princ'? Pascal J. Bourguignon
2013-09-25 13:23   ` Thorsten Jolitz
2013-09-25 14:59   ` Thorsten Jolitz
2013-09-25 10:33 Thorsten Jolitz

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).