From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Lindström Newsgroups: gmane.emacs.help Subject: Async shell-command-to-string? Date: Sun, 01 Jun 2008 23:53:56 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: ger.gmane.org 1212360815 27445 80.91.229.12 (1 Jun 2008 22:53:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2008 22:53:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 00:54:17 2008 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 1K2wRI-0000J3-NE for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 00:54:12 +0200 Original-Received: from localhost ([127.0.0.1]:54956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2wQW-0003bY-NG for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 18:53:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2wQF-0003bR-Tl for help-gnu-emacs@gnu.org; Sun, 01 Jun 2008 18:53:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2wQC-0003ay-DH for help-gnu-emacs@gnu.org; Sun, 01 Jun 2008 18:53:06 -0400 Original-Received: from [199.232.76.173] (port=35143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2wQC-0003av-6P for help-gnu-emacs@gnu.org; Sun, 01 Jun 2008 18:53:04 -0400 Original-Received: from mail1.melmac.se ([194.23.215.40]:50739) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2wQB-0002l3-PF for help-gnu-emacs@gnu.org; Sun, 01 Jun 2008 18:53:04 -0400 Original-Received: (qmail 20292 invoked by uid 89); 1 Jun 2008 22:53:00 -0000 Original-Received: from 87-194-221-83.bethere.co.uk (HELO JpL.DarSerMan.com) (johanl@darserman.com@87.194.221.83) by mail1.melmac.se with ESMTPA; 1 Jun 2008 22:53:00 -0000 X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:54417 Archived-At: Hi all! I'd like to run something similar to shell-command-to-string, but that runs "asynchronously" in a "subprocess" in the "background". I've searched for all those things without finding anything suitable. async-shell-command-to-string or whatever it would be called would take a callback for the string output when the subprocess is done. Is there anything like that already? If not, any hints on how to implement it? The async part of shell-command looks promising to nick. /J