all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Herbert Sitz <hsitz@nwlink.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Batch mode evaluation of source code?
Date: Fri, 17 Jun 2011 19:02:35 -0400	[thread overview]
Message-ID: <6989.1308351755@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Herbert Sitz <hsitz@nwlink.com> of "Fri, 17 Jun 2011 22:55:45 -0000." <loom.20110618T005124-817@post.gmane.org>

Herbert Sitz <hsitz@nwlink.com> 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	other threads:[~2011-06-17 23:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 21:14 Batch mode evaluation of source code? Herbert Sitz
2011-06-17 21:47 ` Eric Schulte
2011-06-17 22:45   ` Herbert Sitz
2011-06-17 22:55     ` Herbert Sitz
2011-06-17 23:02       ` Nick Dokos [this message]
2011-06-17 23:10         ` Herbert Sitz
2011-06-17 23:05     ` Eric Schulte
2011-06-18  0:17       ` Herbert Sitz
2011-06-18  7:32     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6989.1308351755@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hsitz@nwlink.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.