all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Share emacs --daemon between 2 users of same host
Date: Wed, 05 Dec 2018 16:23:35 +0000	[thread overview]
Message-ID: <jjbzhtkx7qw.fsf@gmail.com> (raw)

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








             reply	other threads:[~2018-12-05 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05 16:23 João Távora [this message]
2018-12-05 21:29 ` Share emacs --daemon between 2 users of same host Stefan Monnier
2018-12-06 15:04   ` João Távora
2018-12-06 19:34     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jjbzhtkx7qw.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.