From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Batch mode evaluation of source code? Date: Fri, 17 Jun 2011 19:02:35 -0400 Message-ID: <6989.1308351755@alphaville.americas.hpqcorp.net> References: <8762o4ruzv.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXi3l-0005US-NO for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 19:02:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXi3j-0006oy-Uc for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 19:02:41 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:46673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXi3j-0006oT-Ik for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 19:02:39 -0400 In-Reply-To: Message from Herbert Sitz of "Fri, 17 Jun 2011 22:55:45 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Herbert Sitz Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Herbert Sitz wrote: > Herbert Sitz nwlink.com> writes: > > > I'm working on Windows7 and have an Emacs client running when I issue the > > batch command, which I assumed also means there is a running emacs server. > > Is the > > call getting made to the running emacs server? If so, is there some way to > > avoid the startup overhead (which seems to come from 'Adding c:/program files > > (x86)/emacs/EmacsW32/lisp/ to load path.'). Or, if my batch call is _not_ > > making use of the running Emacs server is there some way to get it to use that > > server? > > > > Herb > > > > I can confirm that a new emacs process is getting created to run each batch mode > command. I don't really understand the emacs-client/emacs-server setup is > supposed to work. So I guess my question is whether my batch-mode command can > be made as a client of the existing emacs-server. I'm guessing the answer is > 'No', but if so maybe there's some other way to speed up creation of the new > emacs process when it's used solely to process an Org source-code-block? > You do M-x server-start on the running emacs to start the server part. Then you invoke emacsclient from the command line to connect to it - check the manpage of emacsclient for details: you might be able to arrange something with the --eval argument. Nick