From: William Gardella <gardellawg@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Calling emacsclient
Date: Mon, 12 Nov 2012 00:03:28 -0500 [thread overview]
Message-ID: <87ip9b9zvj.fsf@gmail.com> (raw)
In-Reply-To: mailman.12766.1352681489.855.help-gnu-emacs@gnu.org
Hi Thorsten,
Thorsten Jolitz <tjolitz@googlemail.com> writes:
> Question:
> How do I get the behaviour described in the manual: "If this
> option [-s] is omitted, emacsclient connects to the first server it
> finds." ?
Based on my own experience, that passage you quoted from (info "(emacs)
emacsclient Options") is just plain incorrect. Emacsclient run without
-s simply expects the server to be named the default server name,
`server'. It fails if it can't find this server, or fails over to
starting up emacs --daemon if run with -a "" or an ALTERNATE_EDITOR=""
environment. The emacsclient manpage, btw, holds out no such hope that
the "first server it finds" thing referenced in the Info manual will
work.
I'm writing up a bug report against the Info manual.
One possibility would be to use the emacsclient -s option together with
a shell wildcard, e.g.:
emacsclient -c -s /tmp/emacs1000/*
works, whatever the name of the socket inside /tmp/emacs1000/ is. So
you could use that trick with the value of your `server-socket-dir'
variable. If you're going to often have multiple emacs daemons, you
should probably give them persistent names based on their role.
Best,
WGG
--
I use grml (http://grml.org/)
next parent reply other threads:[~2012-11-12 5:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12766.1352681489.855.help-gnu-emacs@gnu.org>
2012-11-12 5:03 ` William Gardella [this message]
2012-11-12 13:04 ` Calling emacsclient Thorsten Jolitz
2012-11-12 14:15 ` Suvayu Ali
2012-11-12 14:58 ` Thorsten Jolitz
2012-11-14 13:53 ` Thorsten Jolitz
[not found] ` <mailman.12968.1352901198.855.help-gnu-emacs@gnu.org>
2012-11-14 17:10 ` William Gardella
2012-11-14 20:08 ` Thorsten Jolitz
2012-11-14 17:22 ` William Gardella
2012-11-14 17:23 ` William Gardella
2012-11-14 20:01 ` Thorsten Jolitz
2012-11-12 0:51 Thorsten Jolitz
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=87ip9b9zvj.fsf@gmail.com \
--to=gardellawg@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.