João Távora
2018-12-05 16:23:35 UTC
Hi,
What is the recommended way to get 2 (or more) users, say A and B, of
the same *nix host, to simulteously connect to the same emacs daemon,
each using his own emacsclient?
1. If server-use-tcp is nil, user A starts an emacs daemon which creates
a /tmp/emacs<uid>/server socket. A connects to it fine. But user B
can't pass that as -s to his emacsclient because of insufficient
permissions. This is even if A chown/chmods the socket to be more
permissive.
2. If server-use-tcp is t, the same user A now creates a
~/.emacs.d/server/server file. Again, A connects fine, but B can't pass
thjat as -f to his emacsclient because of insufficient permissions. But
even if A chown/chmods its, there is some code that still forbits it.
Is this at all possible? I read here[1] that is and that you even get
two simultenous cursors if two users are in the same buffer.
Thanks,
João
1: https://www.reddit.com/r/emacs/comments/7d6hv0/real_time_collaboration_in_emacs/dpvhjvu
What is the recommended way to get 2 (or more) users, say A and B, of
the same *nix host, to simulteously connect to the same emacs daemon,
each using his own emacsclient?
1. If server-use-tcp is nil, user A starts an emacs daemon which creates
a /tmp/emacs<uid>/server socket. A connects to it fine. But user B
can't pass that as -s to his emacsclient because of insufficient
permissions. This is even if A chown/chmods the socket to be more
permissive.
2. If server-use-tcp is t, the same user A now creates a
~/.emacs.d/server/server file. Again, A connects fine, but B can't pass
thjat as -f to his emacsclient because of insufficient permissions. But
even if A chown/chmods its, there is some code that still forbits it.
Is this at all possible? I read here[1] that is and that you even get
two simultenous cursors if two users are in the same buffer.
Thanks,
João
1: https://www.reddit.com/r/emacs/comments/7d6hv0/real_time_collaboration_in_emacs/dpvhjvu