From: Barry OReilly <gundaetiapo@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: shell-CLI for Emacs
Date: Fri, 23 Aug 2013 18:02:49 -0400 [thread overview]
Message-ID: <CAFM41H3nDPcn4xroec1kG6W4iipCuJbxyHc4vsRHpkYbiZdftQ@mail.gmail.com> (raw)
> (defun string-to-cmd (str)
> (interactive "s $> ")
> (let*((cmd-and-args (split-string str " "))
> (cmd (car cmd-and-args))
> (args (cdr cmd-and-args)))
> (eval `(,(read cmd) ,@args) )))
Clearer than (eval `(,(read cmd) ,@args) ) is (apply (read cmd) args)
next reply other threads:[~2013-08-23 22:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 22:02 Barry OReilly [this message]
[not found] <mailman.664.1377295372.10748.help-gnu-emacs@gnu.org>
2013-08-23 22:42 ` shell-CLI for Emacs Emanuel Berg
2013-08-24 0:37 ` Thien-Thi Nguyen
[not found] ` <mailman.670.1377304488.10748.help-gnu-emacs@gnu.org>
2013-08-24 3:30 ` Emanuel Berg
2013-08-26 0:56 ` Emanuel Berg
2013-08-26 4:03 ` Yuri Khan
2013-08-26 5:38 ` Thien-Thi Nguyen
-- strict thread matches above, loose matches on Subject: below --
2013-08-23 20:46 Emanuel Berg
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=CAFM41H3nDPcn4xroec1kG6W4iipCuJbxyHc4vsRHpkYbiZdftQ@mail.gmail.com \
--to=gundaetiapo@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).