From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: async.el: A simple asynchronous framework for Emacs Date: Wed, 20 Jun 2012 03:24:35 -0500 Message-ID: References: <20120620072447.573D613C624@vps1.kiwanami.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340180743 3189 80.91.229.3 (20 Jun 2012 08:25:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2012 08:25:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 10:25:42 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ShGEO-0006Mj-Ub for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2012 10:25:41 +0200 Original-Received: from localhost ([::1]:38775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShGEO-0007PI-ON for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2012 04:25:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShGEH-0007Oy-2s for emacs-devel@gnu.org; Wed, 20 Jun 2012 04:25:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShGEE-0003T4-5l for emacs-devel@gnu.org; Wed, 20 Jun 2012 04:25:32 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:48444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShGED-0003Su-Vm for emacs-devel@gnu.org; Wed, 20 Jun 2012 04:25:30 -0400 Original-Received: by yhr47 with SMTP id 47so6366411yhr.0 for ; Wed, 20 Jun 2012 01:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=jdmXhw/n1NwqJNFDCR5r9VPgccEL0NWYk8qI0k6DXWI=; b=CsF5Wawjfrodb8W64U3EPtFdwqgDdZHuiSpSianSQihSHKerkaLa5y1KctYjLBMqrv XQLdbdXhQiIWbDpvkn2tx1zywGoJ6rEppYDRsaBzvU0q71u2pWlXtnHCcRMd/1wtnoZa esUl5KkzBQKUCLo9btUsvTNEmc7u95ySupD0LUA8KBYI3q/mK1Ak/17yyUAzvmDR6HLH EdLqLnLZOg1gqV/yJvfcfF1uJ/o1ZqQHB9SmQ9zG34KGbGWSn+seEKFdKjBImML3+9S1 nRxaUUXrYn0xmUF/ybnaMKBljyknl8SUY0ZUxa1L/IKSoVoujLJGHGr0Vw/thyyhxgEN Owog== Original-Received: by 10.42.123.66 with SMTP id q2mr9952101icr.52.1340180727972; Wed, 20 Jun 2012 01:25:27 -0700 (PDT) Original-Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net. [98.215.105.167]) by mx.google.com with ESMTPS id bo7sm26264626igb.2.2012.06.20.01.25.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 01:25:27 -0700 (PDT) Original-Received: by vulcan.local (Postfix, from userid 501) id 42AECEFC481E; Wed, 20 Jun 2012 03:24:35 -0500 (CDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (John Wiegley's message of "Wed, 20 Jun 2012 03:13:06 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151048 Archived-At: >>>>> John Wiegley writes: > (async-start-process "ls" "ls" > (lambda (proc) > (message (with-current-buffer (process-buffer proc) > (buffer-string)))) > "-la") Perhaps a better syntax would be: (async-start-process '("ls" "-la") (lambda (proc) (message (with-current-buffer (process-buffer proc) (buffer-string))))) It doesn't follow `start-process', the way that I was doing, but it mirrors `async-start' much better. John