unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Writing an interactive function to accept a string argument, then call a Python script?
@ 2007-02-09 13:08 Endless Story
  2007-02-09 14:18 ` Stack
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Endless Story @ 2007-02-09 13:08 UTC (permalink / raw)
  To: help-gnu-emacs

I have hacked out a Python script to do something trivial but
reasonably valuable to me (search a bunch of files for a matching
string pulled from another file). Well, okay, now I want to call this
script from the Emacs minibuffer ... but my understanding of lisp is
pretty poor, which is why I wrote the script in Python to begin with!
(took me a couple of hours instead of a month).

Can anyone give me a simple recipe for an interactive function that
will do the following:

1) In the minibuffer, prompt me for a string to enter.
2) Feed the string as the sole argument to the Python script (let's
say it's at /home/me/myscript.py).
3) Display the return value in the minibuffer

Much thanks -

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-02-14 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-09 13:08 Writing an interactive function to accept a string argument, then call a Python script? Endless Story
2007-02-09 14:18 ` Stack
2007-02-10  8:49 ` Kevin Rodgers
     [not found] ` <mailman.4285.1171097378.2155.help-gnu-emacs@gnu.org>
2007-02-10 10:57   ` Endless Story
2007-02-13  6:20     ` Kevin Rodgers
     [not found]     ` <mailman.4406.1171347657.2155.help-gnu-emacs@gnu.org>
2007-02-13 11:21       ` Endless Story
2007-02-14 17:32         ` Edward Dodge

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).