[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
- Re: emacsclient in elisp, (continued)
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
Re: emacsclient in elisp, Daniel Mendler, 2021/05/19