From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: other "concurrency" approaches Date: Tue, 03 Nov 2015 22:28:03 +0000 Message-ID: <8737wm3eh8.fsf@ferrier.me.uk> References: <1B30AC54-4A83-4437-8BA8-B80F4ED6AF1A@raeburn.org> <878u6f2tf6.fsf_-_@ferrier.me.uk> <83bnbbw0iy.fsf@gnu.org> <87611j2ecl.fsf@ferrier.me.uk> <83vb9juhdm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446589715 15413 80.91.229.3 (3 Nov 2015 22:28:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2015 22:28:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 03 23:28:29 2015 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 1Ztk45-0004Ho-Bo for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2015 23:28:29 +0100 Original-Received: from localhost ([::1]:51407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztk44-0000OU-GV for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2015 17:28:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztk3p-0000Nu-H8 for emacs-devel@gnu.org; Tue, 03 Nov 2015 17:28:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ztk3o-0006Pc-Le for emacs-devel@gnu.org; Tue, 03 Nov 2015 17:28:13 -0500 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:44566 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztk3i-0006Hf-Sl; Tue, 03 Nov 2015 17:28:07 -0500 Original-Received: from nicferrier-dell-xps (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTPA id 666DFAC0AD0; Tue, 3 Nov 2015 23:34:04 +0100 (CET) Original-Received: from nicferrier-XPS13-9333 (localhost [127.0.0.1]) by nicferrier-dell-xps (Postfix) with ESMTPS id 2319560616; Tue, 3 Nov 2015 22:28:03 +0000 (GMT) In-Reply-To: <83vb9juhdm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Nov 2015 19:23:17 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 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:193183 Archived-At: Eli Zaretskii writes: >> From: Nic Ferrier >> Cc: emacs-devel@gnu.org >> Date: Tue, 03 Nov 2015 17:16:10 +0000 >> >> Eli Zaretskii writes: >> >> >> What you want is the ability to do something like this: >> >> >> >> >> >> (let ((proc (start-process "emacs" args-to-make-it-headless))) >> >> (process-send-string proc (prin1-to-string '(+ 1 (* 30 45)))) >> >> (process-send-eof proc) >> >> (print (buffer-string (process-buffer proc)))) >> >> >> >> in other words, an Emacs that just reads forms from stdin and executes >> >> them and outputs to stdout. >> > >> > This sounds like a description of -batch, but you already know about >> > it, so I'm quite sure I'm missing something important here. >> >> -batch has a peculiar environment, it does not read the user's >> environment. > > You mean, the init files? But you can load them via -l, no? That fixes the init files but doesn't fix the environment. There are all sorts of little things wrong. There's also something wrong with stdin in that scenario as I recall. Why don't you try it and see what I mean? Nic