[emacs-berlin] `server-eval-at' turns out to be pretty useful...
Tilmann Singer
tils at tils.net
Fri Apr 2 12:08:57 UTC 2021
I might be missing something obvious, but what exactly is it that
emacsclient can not do? With a running Emacs instance in which
(server-start) has been called before, the following commands on a
terminal with the bash shell work out of the box for me:
$ emacsclient -e "(+ 1 1)"
2
$ printf "How many is binary? $(emacsclient -e '(+ 1 1)')\n"
How many is binary? 2
$ emacsclient -e 'emacs-version'
"27.2"
$ emacsclient -e '(with-current-buffer "*scratch*" (insert "Hello scratch buffer"))'
nil
=> Text was inserted into buffer *scratch*
At least on this (arch) linux machine, the default server-socket-dir of
"/run/user/1000/emacs" seems to be working fine.
Til
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 507 bytes
Desc: not available
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20210402/5f152376/attachment.sig>
More information about the emacs-berlin
mailing list