unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: kris <cq.personal@gmail.com>, 33934@debbugs.gnu.org
Subject: bug#33934: 26.1; server.el/emacsclient mismatch regarding socket...
Date: Mon, 31 Dec 2018 18:25:13 +1300	[thread overview]
Message-ID: <f6b27276-24fc-4e1c-9f98-c37ae64c267c@orcon.net.nz> (raw)
In-Reply-To: <CACTzTFA5eFuL_qQeD6J9DctWntPHzq0GgynotQxROPm9BdarRQ@mail.gmail.com>

On 31/12/18 3:02 PM, kris wrote:
> emacsclient has the -s option for specifying a UNIX socket directory
> but server.el uses defvar to set server-socket-dir and there appears no
> way to override it.

You can override it just as easily as with any defvar:

(require 'server)
(setq server-socket-dir "/path/to/dir")
(setq server-name "myserver")
(server-start)

$ emacsclient -c -s /path/to/dir/myserver


You can also use:

$ emacs --daemon=myserver

To start a server with 'server-name' set to 'myserver'; and then:

$ emacsclient -c -s myserver






  reply	other threads:[~2018-12-31  5:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-31  2:02 bug#33934: 26.1; server.el/emacsclient mismatch regarding socket kris
2018-12-31  5:25 ` Phil Sainty [this message]
2018-12-31 15:05   ` Eli Zaretskii
     [not found]     ` <CACTzTFDCNDdRePDdeun=gX9+V8k=AtrZio4U3y=9n9wQGF-ZDw@mail.gmail.com>
2019-01-04 13:58       ` Eli Zaretskii
2018-12-31 14:59 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=f6b27276-24fc-4e1c-9f98-c37ae64c267c@orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --cc=33934@debbugs.gnu.org \
    --cc=cq.personal@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).