emacs-devel
[Top][All Lists]
Advanced

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

Re: emacsclient in elisp


From: Daniel Mendler
Subject: Re: emacsclient in elisp
Date: Thu, 20 May 2021 19:45:44 +0200

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.

>> 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).

Daniel



reply via email to

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