From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Mon, 23 Oct 2006 18:26:19 +0200 Message-ID: <453CED2B.7090308@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161620888 24380 80.91.229.2 (23 Oct 2006 16:28:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 16:28:08 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 18:28:03 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 1Gc2db-00087u-KN for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 18:26:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc2da-0002Dp-V1 for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 12:26:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc2dM-0002Dg-Hn for emacs-devel@gnu.org; Mon, 23 Oct 2006 12:26:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc2dF-0002Cu-57 for emacs-devel@gnu.org; Mon, 23 Oct 2006 12:26:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc2dE-0002Ci-Pp for emacs-devel@gnu.org; Mon, 23 Oct 2006 12:26:32 -0400 Original-Received: from [81.228.9.180] (helo=av6-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc2dE-0004gr-DJ for emacs-devel@gnu.org; Mon, 23 Oct 2006 12:26:32 -0400 Original-Received: by av6-2-sn3.vrr.skanova.net (Postfix, from userid 502) id BBB6237F1B; Mon, 23 Oct 2006 18:26:30 +0200 (CEST) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av6-2-sn3.vrr.skanova.net (Postfix) with ESMTP id A633B37E48; Mon, 23 Oct 2006 18:26:30 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 6C38737E42; Mon, 23 Oct 2006 18:26:30 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (X11/20060922) Original-To: Juanma Barranquero In-Reply-To: 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:61049 Archived-At: Juanma Barranquero skrev: > I'm finally getting the time to try implementing TCP sockets (and so > Win32 support) for emacsclient.c/server.el. I must confess that the > talk about reimplementing gnuserv in Java has made me shiver quite a > lot (no offense intended, I just happen to not like Java *at all*). > > I've reviewed all comments exchanged about this issue in past threads > (or at least all the ones I could find). There were some decisions > that got more-or-less universal agreement, some that were > controversial, and a few that were left undecided (mostly because we > were throwing ideas back and forth). > > So let's recapitulate: > > - The server (i.e., server.el) should: > - Have an option to choose among Unix (if available) or TCP sockets. > - Have an option to specify the host address, defaulting to 127.0.0.1. > - Choose the port at random (to allow multiple server in the same > computer). 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. Then you can write the files as ~/emacs.d/server-(port - start port). I.e. ~/emacs.d/server-0, ~/emacs.d/server-1, ... Emacsclient by default then reads ~/emacs.d/server-0. emacsclient --server 1 would be ~/emacs.d/server-1. Jan D. Jan D.