* emacsclient - load file and recieve output
@ 2013-07-13 9:53 Thorsten Jolitz
0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-07-13 9:53 UTC (permalink / raw)
To: help-gnu-emacs
Hi List,
say I start emacs as server
,------------------------------------------------------
| $ emacs -Q --daemon=my-server --directory=/home/DIR
`------------------------------------------------------
and calls from the command-line work so far
,---------------------------------------------------------
| $ emacsclient -s my-server -e "(+ 3 5)"
| 8
| $ emacsclient -s my-server -e "(message \"%s\" (+ 3 5))"
| "8"
| $ emacsclient -s my-server -e "(format \"%s\" (+ 3 5))"
| "8"
| $ emacsclient -s my-server -e "(print \"hallo world\")"
| "hallo world"
`---------------------------------------------------------
Now I want to load a file (in /home/DIR/) with Emacs Lisp code and
receive the output from that code.
,------------------------------------------------------------------------
| $ emacsclient -s my-server -e "(load-file \"testfile.el\")"
| t
`------------------------------------------------------------------------
The file contains the same expressions as above
,-----------------------
| (+ 3 5)
|
| (message "%s" (+ 3 5))
|
| (format "%s" (+ 3 5))
|
| (print "hallo world")
`-----------------------
and loading it from withing Emacs with 'M-: (load-file ...)' prints the
'message and 'print output into the *Messages* buffer as expected. But
with the call to emacsclient, (it seems) I only receive the final 't'
(=> load-file was successful).
How can I load a file within a call to emacsclient and receive all the
output that goes to stdout or stderr?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-13 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-13 9:53 emacsclient - load file and recieve output Thorsten Jolitz
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.