unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: sunway <sunwayforever@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to convert a string to a symbol?
Date: Sun, 14 Sep 2008 01:34:33 -0700 (PDT)	[thread overview]
Message-ID: <ff3afca0-788c-4eba-a543-cbae0ba3b0a1@x16g2000prn.googlegroups.com> (raw)
In-Reply-To: 87myibcfsz.fsf@lion.rapttech.com.au

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



  reply	other threads:[~2008-09-14  8:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-14  4:59 how to convert a string to a symbol? sunway
2008-09-14  5:54 ` Drew Adams
2008-09-14  6:10   ` Drew Adams
     [not found]   ` <mailman.19202.1221372658.18990.help-gnu-emacs@gnu.org>
2008-09-14  7:10     ` sunway
2008-09-14  7:27       ` Pascal J. Bourguignon
2008-09-14  8:06       ` Tim X
2008-09-14  8:34         ` sunway [this message]
2008-09-14  9:25           ` Joost Diepenmaat
2008-09-14 13:47           ` Pascal J. Bourguignon
2008-09-14  7:25     ` Pascal J. Bourguignon
2008-09-14 10:19     ` Richard G Riley
2008-09-14 13:43       ` Pascal J. Bourguignon
2008-09-15  9:34         ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff3afca0-788c-4eba-a543-cbae0ba3b0a1@x16g2000prn.googlegroups.com \
    --to=sunwayforever@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).