emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Batch mode evaluation of source code?


From: Nick Dokos
Subject: Re: [O] Batch mode evaluation of source code?
Date: Fri, 17 Jun 2011 19:02:35 -0400

Herbert Sitz <address@hidden> wrote:

> Herbert Sitz <hsitz <at> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]