From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Mon, 23 Oct 2006 15:52:23 -0400 Message-ID: References: <453CED2B.7090308@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161633255 14839 80.91.229.2 (23 Oct 2006 19:54:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 19:54:15 +0000 (UTC) Cc: Juanma Barranquero , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 21:54:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gc5qx-0006CA-JY for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 21:52:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc5qx-0000FQ-71 for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 15:52:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc5qZ-0000Ap-CM for emacs-devel@gnu.org; Mon, 23 Oct 2006 15:52:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc5qX-00009i-9X for emacs-devel@gnu.org; Mon, 23 Oct 2006 15:52:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc5qX-00009e-41 for emacs-devel@gnu.org; Mon, 23 Oct 2006 15:52:29 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc5qX-0003sd-6d for emacs-devel@gnu.org; Mon, 23 Oct 2006 15:52:29 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 7AC282CF79B; Mon, 23 Oct 2006 15:52:28 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 7025A3FE0; Mon, 23 Oct 2006 15:52:23 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4903D6CABE; Mon, 23 Oct 2006 15:52:23 -0400 (EDT) Original-To: "Jan D." In-Reply-To: <453CED2B.7090308@swipnet.se> (Jan D.'s message of "Mon\, 23 Oct 2006 18\:26\:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61060 Archived-At: > Isn't it better to start with a well known number and if that is busy, just > add 1 until you get a free one? That way emacslcient can have a default which > just works if there is just one emacs server running. Huh? Why would you need that. It seems just as simple to - bind to any port. - get the port that was used. - write it into ~/.emacs.d/server/server ("server" is the default `server-name') along with the host name and the auth key. emacsclient looks in ~/.emacs.d/server/server (where "server" is the default but can be changed with --server-name) to find all the relevant info. > Emacsclient by default then reads ~/emacs.d/server-0. emacsclient --server 1 > would be ~/emacs.d/server-1. That sounds messy. Stefan