help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple stringification


From: Stefan Monnier
Subject: Re: Simple stringification
Date: Wed, 24 Feb 2010 15:13:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

>> Is there in fact a function that stringifies its single argument, and
>> does nothing else?
> Well, not in emacs lisp.  Here you have to implement these standard(*)
> functions yourself:

> (defun princ-to-string (x) (format "%s" x))
> (defun prin1-to-string (x) (format "%S" x))

Actually prin1-to-string seems to be predefined in my version of Emacs.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]