emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient in elisp


From: Arthur Miller
Subject: Re: emacsclient in elisp
Date: Fri, 21 May 2021 21:52:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Daniel Mendler <mail@daniel-mendler.de> writes:

> On 5/20/21 5:59 PM, Arthur Miller wrote:
>> Isn't that what 'server-eval-at' already does?
>> 
>> emacs --daemon=foo
>> 
>> (server-eval-at "foo" '(some-complex-eval))
>
> Yes, `server-eval-at` fulfills a similar purpose. But it is not
> asynchronous. My function has a callback argument.

Ok, you already looked at it :).

>>> This is probably neither robust nor platform
>>> independent due to the use of unix sockets.
>> 
>> Docs says tcp sockets are used where local sockets are not avialable and:
>> 
>> https://www.gnu.org/software/emacs/manual/html_node/emacs/TCP-Emacs-server.html
>
> That's right. The `emacsclient` implementation I've written above should
> also handle TCP sockets as a fallback. But for now I am happy with only
> handling Unix sockets (see https://github.com/minad/affe).

Oki. There was some guy on GH doing something simnilar via TCP socks,
don't know if you are aware/wish to look at it.

https://gist.github.com/jclosure/cb34dbd813c6bd1e3c4e128ad87d69c7



reply via email to

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