From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David L" Newsgroups: gmane.emacs.help Subject: Re: multiple emacs servers Date: Thu, 18 Oct 2007 11:44:48 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1753682671==" X-Trace: ger.gmane.org 1192733116 27125 80.91.229.12 (18 Oct 2007 18:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 18:45:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Juanma Barranquero" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 20:45:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IiaMs-0002NU-Eu for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 20:45:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiaMl-0004vw-3h for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 14:45:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiaMW-0004uz-L0 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:44:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiaMU-0004un-AX for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:44:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiaMU-0004uk-6k for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:44:50 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiaMT-00058g-SB for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:44:50 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so239128nfh for ; Thu, 18 Oct 2007 11:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=us2NBcSXq1+Fu5VvBpaqUkW7xKtoNGnEoDpzfnrfxhQ=; b=M8D0e000J4X0uMqaqreyOZcOtyDWBM1rK/+qnwHW5kDdGxkWrKM+MUVKjzpcWz6jPKh9wGD5L7+uztcF4pJowzXPDMLLcoH52LZRThOxi0v4iaPZJfkbE7ZmBR8tbCYKLGt4oxMwQo6RVM5aRgzyXqNXrV8sViuJTIoErELjDRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mfWJ2/S2efywniT9wLXies6x0PHiu3XnqUeOOSF50PGRwEb6Y+o9Y8JTrv2nIXi4g7AEQUDR81mT0XLTrfj80uaJDX2uC5jweU1FB4PaEy5D/zqpykzFYp2zonKEcFHLJDxVC43dVqXUtxgPWRG6YeCaknpr8YBdBzMv7NgWDeI= Original-Received: by 10.86.26.11 with SMTP id 11mr643033fgz.1192733088694; Thu, 18 Oct 2007 11:44:48 -0700 (PDT) Original-Received: by 10.86.93.20 with HTTP; Thu, 18 Oct 2007 11:44:48 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48536 Archived-At: --===============1753682671== Content-Type: multipart/alternative; boundary="----=_Part_8926_18417038.1192733088672" ------=_Part_8926_18417038.1192733088672 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/18/07, Juanma Barranquero wrote: > > On 10/18/07, David L wrote: > > > The emacs manual says: > > > > 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'. > > > > I can't get this to work. Am I doing something wrong or is this > > documentation obsolete? > > What are you doing, exactly? I'm trying to use M-x set-variable from an open emacs session to set the "server-name" variable. But the only variable that emacs will let me set that starts with "server" is "server-mode". I can't even describe-variable "server-name" until after the server is started and I still can't set-variable server-name even after it is started. > > emacs -q --eval '(progn (setq server-name "server1") (server-start))' > emacs -q --eval '(progn (setq server-name "server2") (server-start))' > > and you can use: > > emacsclient --server-file=server1 my-file > emacsclient --server-file=server2 my-other-file This works, thanks! But I don't think the procedure in the documentation works.? ------=_Part_8926_18417038.1192733088672 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 10/18/07, Juanma Barranquero <lekktu@gmail.com> wrote:
On 10/18/07, David L <idht4n@gmail.com> wrote:

> The emacs manual says:
>
> 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 <RET> server-name <RET> foo <RET>' sets the
> server name to `foo'.
>
> I can't get this to work.  Am I doing something wrong or is this
> documentation obsolete?

What are you doing, exactly?

I'm trying to use  M-x set-variable from an open emacs session to
set the "server-name" variable.  But the only variable that emacs
will let me set that starts with "server" is "server-mode".  I can't
even describe-variable "server-name" until after the server is
started and I still can't set-variable server-name even after it is
started.
<snip>

  emacs -q --eval '(progn (setq server-name "server1") (server-start))'
  emacs -q --eval '(progn (setq server-name "server2") (server-start))'

and you can use:

  emacsclient --server-file=server1 my-file
  emacsclient --server-file=server2 my-other-file
This works, thanks!  But I don't think the procedure in the
documentation works.?

------=_Part_8926_18417038.1192733088672-- --===============1753682671== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1753682671==--