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: Herbert Sitz
Subject: Re: [O] Batch mode evaluation of source code?
Date: Sat, 18 Jun 2011 00:17:47 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Schulte <schulte.eric <at> gmail.com> writes:
> 
> By connecting to a persistent Emacs instance much of the .el script I
> attached could be removed assuming Babel has already been configured in
> the running Emacs server.
> 
> Hope this helps -- Eric
> 

Eric, Nick:

Thanks, yes it does.  Using also Nick's tip about using --eval (batch doesn't
seem to work when calling a client process) I've got things working at least
part of the way.

I can do the following command in the terminal:

>  "c:\program files (x86)\emacs\emacs\bin\emacsclientw.exe" --eval ^"(progn 
> (let
((org-confirm-babel-evaluate nil)) (find-file \^"short-code.org\^")
(org-babel-next-src-block) (print (org-babel-execute-src-block))))

This gets processed properly by the running client, but print command output
goes into the *message* buffer rather than to the terminal used to enter the
command.

Any tips on how to redirect the output to my terminal?  If not, saving to a file
is a decent alternative (though I don't know how to do that either, lol).

-- Herb






reply via email to

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