From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: emacsclient doesn't find server with non-standard name
Date: Fri, 28 Dec 2012 19:45:28 +0100 [thread overview]
Message-ID: <87han6aud3.fsf@web.de> (raw)
Hi,
today I tried this:
(progn
(require 'server)
(let ((server-name (concat "server_" (format-time-string "%H:%M:%S"))))
(server-start)))
This is on Debian with an Emacs compiled from the emacs-24 branch. If I
then invoke emacsclient, it complains that it didn't find any server:
| bash-4.2:micha:~$ emacsclient ~/.bashrc
| emacsclient: can't find socket; have you started the server?
| To start the server in Emacs, type "M-x server-start".
| emacsclient: No socket or alternate editor. Please use:
|
| --socket-name
| --server-file (or environment variable EMACS_SERVER_FILE)
| --alternate-editor (or environment variable ALTERNATE_EDITOR)
| bash-4.2:micha:~$
When I explicitly specify the server name with the -s option,
emacsclient succeeds. However, I wonder why it is necessary to specify
a name, because the man page of emacsclient says:
| `-s SERVER-NAME'
| `--socket-name=SERVER-NAME'
| Connect to the Emacs server named SERVER-NAME. The server name is
| given by the variable `server-name' on the Emacs server. If this
| option is omitted, `emacsclient' connects to the first server it
| finds. (This option is not supported on MS-Windows.)
So, why doesn't emacsclient "find" any server? The socket is existent
in /tmp/emacs$UID/. Why doesn't emacsclient just look there and use
any of the sockets, as the doc seems to describe?
Thanks,
Michael.
next reply other threads:[~2012-12-28 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 18:45 Michael Heerdegen [this message]
2012-12-31 17:23 ` emacsclient doesn't find server with non-standard name Michael Heerdegen
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=87han6aud3.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@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.