* emacsclient doesn't find server with non-standard name
@ 2012-12-28 18:45 Michael Heerdegen
2012-12-31 17:23 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: Michael Heerdegen @ 2012-12-28 18:45 UTC (permalink / raw)
To: emacs-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-31 17:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-28 18:45 emacsclient doesn't find server with non-standard name Michael Heerdegen
2012-12-31 17:23 ` Michael Heerdegen
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.