From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: multiple emacs servers Date: Thu, 18 Oct 2007 20:20:18 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192731646 22089 80.91.229.12 (18 Oct 2007 18:20:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 18:20:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "David L" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 20:20:47 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 1IiZzC-0005fq-7j for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 20:20:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiZz4-0005v1-Pg for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 14:20:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiZyr-0005um-65 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:20:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiZyq-0005uO-1z for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:20:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiZyp-0005uL-Uu for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:20:23 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.180]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiZyp-0008Pm-R2 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2007 14:20:24 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so312958wah for ; Thu, 18 Oct 2007 11:20:18 -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:content-transfer-encoding:content-disposition:references; bh=1Zl17k5tBFVuDjygdTo8sXFNDMuJNJJ5qqDIxibvs2k=; b=Suzvu/TzIxS4IjYj/JpPpxT+4Wq84Qh3kgW8GwpPqEcc5EnrSKfAEQw//12ZFgATil3FwfwIxnqgDbE19h4MuSWuww91qlw3A4jLXKYC1ajy4fCidX1EJVKZHW+D3SEefi71ZdldlZYOysOx34RiUppHjHITGNz3CvQaB7ZI9OQ= 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:content-transfer-encoding:content-disposition:references; b=QzvGfiYEeVdnmqsQBb0VX/FsH3NkNGobiYml62FlyazsN9+k2XBGV4LRLKNamY4kgcZKUsjasiSCMB5aj5VhgPwzTXCAfpC6DUeX4WtrcVxpf2V5Ow1i4qMi8dTKNAz2UoAISyokAXSg8RnwlWqTgWSBEcs1YDtUKZfRlZTQB/c= Original-Received: by 10.115.77.1 with SMTP id e1mr763681wal.1192731618094; Thu, 18 Oct 2007 11:20:18 -0700 (PDT) Original-Received: by 10.115.72.13 with HTTP; Thu, 18 Oct 2007 11:20:18 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:48534 Archived-At: 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 think it's a misunderstanding. You cannot have two server processes in the same instance of Emacs (there's only one `server-process' variable, and `server-start' kills the previous process before starting one anew), but certainly you can start several Emacsen, each one with a different value of server-name, and have several Emacs servers. I do it daily. 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 Juanma