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