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

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

Re: how to convert a string to a symbol?


From: Pascal J. Bourguignon
Subject: Re: how to convert a string to a symbol?
Date: Sun, 14 Sep 2008 09:27:30 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux)

sunway <sunwayforever@gmail.com> writes:

> I don't  want to take "(> 2 1)" as a symbol name, instead I want  "(>
> 2 1)" be evaled to 't'

Oh, that's easy:

(defun eval-to-t (expr)
   't)

(eval-to-t "(> 2 1)") --> t


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.


reply via email to

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