How to use `prin1-to-string' to generate elisp expr string

Feng Shu <[email protected]> Fri, 08 May 2015 15:55:40 +0800
Newsgroups gmane.comp.window-managers.sawfish
Message-ID <[email protected]>
I want to use prin1-to-string to generate a elisp expr string, for example:

#+BEGIN_EXAMPLE
(prin1-to-string '(`(test ,(concat "aaa" "bbb"))))
#+END_EXAMPLE

Result expected is :

#+BEGIN_EXAMPLE
"(`(test ,(concat \"aaa\" \"bbb\")))"
#+END_EXAMPLE

but, the real result is;

#+BEGIN_EXAMPLE
"((backquote (test (backquote-unquote (concat \"aaa\" \"bbb\")))))"
#+END_EXAMPLE

this is not a valid elisp expression string,

How to solve the problem? thanks.

-- 


-- 
Sawfish ML