From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Mon, 23 Oct 2006 23:54:47 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161640546 11875 80.91.229.2 (23 Oct 2006 21:55:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 21:55:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 23:55:39 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 1Gc7l9-00025Q-4M for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 23:55:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc7l8-00020L-Pj for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 17:55:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc7kx-00020G-Vc for emacs-devel@gnu.org; Mon, 23 Oct 2006 17:54:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc7kw-0001zw-Q3 for emacs-devel@gnu.org; Mon, 23 Oct 2006 17:54:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc7kw-0001zt-Lt for emacs-devel@gnu.org; Mon, 23 Oct 2006 17:54:50 -0400 Original-Received: from [64.233.184.229] (helo=wr-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc7kw-0005rw-Qa for emacs-devel@gnu.org; Mon, 23 Oct 2006 17:54:50 -0400 Original-Received: by wr-out-0506.google.com with SMTP id i2so386233wra for ; Mon, 23 Oct 2006 14:54:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WYJlZD8LbZUhYn0guvms0bNW2VOvFzMp2GAIGiT5R6eP5NN9t0yUuSde5wKzOxsSdFDZmZB1o5gIOpV4rPejuwTjn6XTeAixwBc0lYAo7DFCTXf1yBfX7QNHTZccn1B8T1UEig7BVtUwK/kODrQUaSICnp2dWkkSfTsY5XwIdvo= Original-Received: by 10.82.124.10 with SMTP id w10mr1533558buc; Mon, 23 Oct 2006 14:54:47 -0700 (PDT) Original-Received: by 10.82.136.11 with HTTP; Mon, 23 Oct 2006 14:54:47 -0700 (PDT) Original-To: "Emacs Devel" In-Reply-To: Content-Disposition: inline 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:61073 Archived-At: On 10/23/06, Stefan Monnier wrote: > The -auth thingy is not need for unix-sockets. Yes, of course. From "Choose the port at random" on I was talking of the TCP socket case. > Sounds OK. I'm not quite sure how "-server-name" and > "--socket-name" relate. Maybe we should merge them? This is what you said a year ago: "Maybe you're right, and .emacs.servers should be a directory. So if you run emacsclient --server-name foo it would look for /tmp/emacs/foo for a unix socket and if that fails it'd look for ~/.emacs.servers/foo for a file holding the host/port/auth info." so I think yes, you were thinking of merging both. > I don't understand. Currently, "--socket-name=FOO" tries /tmp/esrv-UID/FOO > (and if not specified it assumes FOO to be "server"), and that doesn't > prevent root from saying "--socket-name=/tmp/esrv-OTHERUID/bar". > Why shouldn't this work just as well for --server-name? OK, but then, --server-name=foo is taken to be (in TCP sockets) either ~/.emacs.d/server/foo, or an absolute path. That wasn't explicit in the earlier thread and I understood "foo" to be always taken as a server name. > BTW, it shouldn't be ~/.emacs.server but ~/.emacs.d/servers or something > like that. Agreed. -- /L/e/k/t/u