From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Gardella Newsgroups: gmane.emacs.help Subject: Re: Calling emacsclient Date: Mon, 12 Nov 2012 00:03:28 -0500 Organization: Aioe.org NNTP Server Message-ID: <87ip9b9zvj.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352696712 26642 80.91.229.3 (12 Nov 2012 05:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 05:05:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 06:05:22 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TXmD3-0006Gu-Vn for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 06:05:22 +0100 Original-Received: from localhost ([::1]:59575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXmCu-0005PF-Cc for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 00:05:12 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: sypdE5dyfWYz8sfAApD9Aw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:uY5oNijBsvNSidEBrCDdRdfmuPA= Original-Xref: usenet.stanford.edu gnu.emacs.help:195326 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87648 Archived-At: Hi Thorsten, Thorsten Jolitz 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/)