[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to convert a string to a symbol?
From: |
sunway |
Subject: |
Re: how to convert a string to a symbol? |
Date: |
Sun, 14 Sep 2008 01:34:33 -0700 (PDT) |
User-agent: |
G2/1.0 |
What you say is close to what I want, I do want to turn a string into
a sexp,but the string could from the minibuffer or somewhere else.
for example, I want to write a function , it takes a string as
argument, the function could turn the string to a sexp, eval it, and
return the result.
On Sep 14, 4:06 pm, Tim X <t...@nospam.dev.null> wrote:
> sunway <sunwayfore...@gmail.com> writes:
> > I don't want to take "(> 2 1)" as a symbol name, instead I want "(>
> > 2 1)" be evaled to 't'
>
> Your question, or at least the way you have phrased it is misleading as
> you are (possibly) using terminology incorrectly. try asking your
> question with some background on what it is your trying to do.
>
> For example, (this is just a 'guess' from reading between the lines of
> what yu have posted and from similar questions I've seen in the past)
>
> "I'm developing a small package where I want the user to be able to
> enter some lisp expression via the mini-buffer and have elisp evaluate
> it and return the result. However, I'm having problems working out how
> to get the data entered by the user evaluated as if it was a lisp
> expression. I think what I need to do is somehow turn the string entered
> by the user into an s-expression and have emacs evaluate it and return
> the result. Where do I start?"
>
> If the above is close to wht you want, chaeck out the documentation to
> interactive and the x or X args in particular. If its not, let us know
> more!
>
> Tim
>
> --
> tcross (at) rapttech dot com dot au
- how to convert a string to a symbol?, sunway, 2008/09/14
- RE: how to convert a string to a symbol?, Drew Adams, 2008/09/14
- RE: how to convert a string to a symbol?, Drew Adams, 2008/09/14
- Message not available
- Re: how to convert a string to a symbol?, sunway, 2008/09/14
- Re: how to convert a string to a symbol?, Pascal J. Bourguignon, 2008/09/14
- Re: how to convert a string to a symbol?, Tim X, 2008/09/14
- Re: how to convert a string to a symbol?,
sunway <=
- Re: how to convert a string to a symbol?, Joost Diepenmaat, 2008/09/14
- Re: how to convert a string to a symbol?, Pascal J. Bourguignon, 2008/09/14
- Message not available
- Message not available