From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: async.el: A simple asynchronous framework for Emacs Date: Tue, 19 Jun 2012 07:11:37 +0200 Message-ID: <87k3z3lwc6.fsf@gnuvola.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340082859 31117 80.91.229.3 (19 Jun 2012 05:14:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 05:14:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 07:14:19 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 1Sgqlc-00048H-Ik for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2012 07:14:16 +0200 Original-Received: from localhost ([::1]:59520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgqlc-00050a-Gp for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2012 01:14:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgqla-00050V-GX for emacs-devel@gnu.org; Tue, 19 Jun 2012 01:14:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgqlY-0001c2-V1 for emacs-devel@gnu.org; Tue, 19 Jun 2012 01:14:14 -0400 Original-Received: from smtp208.alice.it ([82.57.200.104]:58630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgqlY-0001bd-Kq for emacs-devel@gnu.org; Tue, 19 Jun 2012 01:14:12 -0400 Original-Received: from ambire (95.244.65.249) by smtp208.alice.it (8.6.023.02) id 4F056E8512FCC037 for emacs-devel@gnu.org; Tue, 19 Jun 2012 07:14:10 +0200 Original-Received: from ttn by ambire with local (Exim 4.72) (envelope-from ) id 1Sgqj3-0000Vi-UQ for emacs-devel@gnu.org; Tue, 19 Jun 2012 07:11:37 +0200 In-Reply-To: (John Wiegley's message of "Mon, 18 Jun 2012 21:51:31 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.104 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:151014 Archived-At: () John Wiegley () Mon, 18 Jun 2012 21:51:31 -0500 Since it's likely that you'll want the child Emacs to heavy lifting based on the parent Emacs' configuration, you can use `async-inject-environment' to pass variable definitions across the process boundary: (async-start (lambda () (require 'some-module) (async-inject-environment "\\`some-module-") ...)) The variable definitions from the module "some-module" will be passed into the child. The variable values must be of somewhat limited type, right?