From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.devel Subject: Re: server-start and server-name doesn't seem to work Date: Fri, 16 Oct 2009 18:47:43 -0500 Organization: Still searching... Message-ID: <874opygau8.fsf@newsguy.com> References: <87aazrp607.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255736917 28932 80.91.229.12 (16 Oct 2009 23:48:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2009 23:48:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 01:48:27 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MywX3-0006TS-KF for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2009 01:48:26 +0200 Original-Received: from localhost ([127.0.0.1]:33991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MywX3-0007gL-6A for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2009 19:48:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MywWx-0007ew-OT for emacs-devel@gnu.org; Fri, 16 Oct 2009 19:48:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MywWt-0007aM-6H for emacs-devel@gnu.org; Fri, 16 Oct 2009 19:48:19 -0400 Original-Received: from [199.232.76.173] (port=35864 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MywWt-0007aD-2z for emacs-devel@gnu.org; Fri, 16 Oct 2009 19:48:15 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:38756) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MywWs-00027h-Jb for emacs-devel@gnu.org; Fri, 16 Oct 2009 19:48:14 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MywWm-0006Pn-ND for emacs-devel@gnu.org; Sat, 17 Oct 2009 01:48:08 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Oct 2009 01:48:08 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Oct 2009 01:48:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:1DzbUx8rySvLDdNtwfjiJVx0jFI= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116190 Archived-At: Stefan Monnier writes: >> After M-x server-start >> If I do M-x set-variable server-name foo > > BTW, even if you use "foo", you'll bump into the limitation that a given > Emacs instance can only run a single Emacs server at a time. So you > need to change server-name *before* calling server-start. >From what I see... server-name is not available as a variable *until* you do `server-start'. At least in a freshly started emacs the cmd M-x set-variable server-name shows `no match' But becomes available if I do M-x server-start. (or M-x server-mode). But no matter how I go at it... it appears not to work if I name the server. at least `emacsclient -s name -c' fails. How do you recommend I acquire a named server from a running emacs? I mean aside from the shell cmdline. The manual is pretty clear in saying it is something I should be able to do: You can run multiple Emacs servers on the same machine by giving each one a unique "server name", using the variable `server-name'. For example, `M-x set-variable server-name foo ' sets the server name to `foo'. The `emacsclient' program can specify a server by name, using the `-s' option (*note emacsclient Options::).