From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Endless Story" Newsgroups: gmane.emacs.help Subject: Writing an interactive function to accept a string argument, then call a Python script? Date: 9 Feb 2007 05:08:16 -0800 Organization: http://groups.google.com Message-ID: <1171026496.713032.169290@v33g2000cwv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1171028498 15817 80.91.229.12 (9 Feb 2007 13:41:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2007 13:41:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 09 14:41:36 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HFW0N-0002hy-Jo for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Feb 2007 14:41:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFW0N-0006Yc-3p for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Feb 2007 08:41:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v33g2000cwv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 162.84.222.82 Original-X-Trace: posting.google.com 1171026513 6746 127.0.0.1 (9 Feb 2007 13:08:33 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 9 Feb 2007 13:08:33 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v33g2000cwv.googlegroups.com; posting-host=162.84.222.82; posting-account=JP8pbg0AAADYDr61n41ZYs45c0xuivey Original-Xref: shelby.stanford.edu gnu.emacs.help:145409 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41014 Archived-At: 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 -