<div dir="ltr">My computer is trying to driveĀ insane. That is what is happening here. And it is working.<div><br></div><div>It has to be working wrong on my machine.<br></div><div><br></div><div>Thanks for sharing that Til. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 2, 2021 at 7:09 AM Tilmann Singer <<a href="mailto:tils@tils.net">tils@tils.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I might be missing something obvious, but what exactly is it that<br>
emacsclient can not do? With a running Emacs instance in which<br>
(server-start) has been called before, the following commands on a<br>
terminal with the bash shell work out of the box for me:<br>
<br>
$ emacsclient -e "(+ 1 1)"<br>
2<br>
<br>
$ printf "How many is binary? $(emacsclient -e '(+ 1 1)')\n"<br>
How many is binary? 2<br>
<br>
$ emacsclient -e 'emacs-version'<br>
"27.2"<br>
<br>
$ emacsclient -e '(with-current-buffer "*scratch*" (insert "Hello scratch buffer"))'<br>
nil<br>
=> Text was inserted into buffer *scratch*<br>
<br>
<br>
At least on this (arch) linux machine, the default server-socket-dir of<br>
"/run/user/1000/emacs" seems to be working fine.<br>
<br>
<br>
Til<br>
</blockquote></div>