all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.