From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Bennee Newsgroups: gmane.emacs.help Subject: Start the emacs-server once... Date: Thu, 21 Aug 2008 12:55:00 +0100 Message-ID: <1219319700.30257.0.camel@pitcairn.cambridgebroadband.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219324920 22577 80.91.229.12 (21 Aug 2008 13:22:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 13:22:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 15:22:53 2008 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 1KWA7A-00037o-1G for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 15:22:12 +0200 Original-Received: from localhost ([127.0.0.1]:47527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWA6C-0008Kr-Fq for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 09:21:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KW8lp-0006kN-EV for help-gnu-emacs@gnu.org; Thu, 21 Aug 2008 07:56:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KW8ln-0006i2-QX for help-gnu-emacs@gnu.org; Thu, 21 Aug 2008 07:56:04 -0400 Original-Received: from [199.232.76.173] (port=45602 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KW8ln-0006hv-Il for help-gnu-emacs@gnu.org; Thu, 21 Aug 2008 07:56:03 -0400 Original-Received: from mailhost.cambridgebroadband.com ([212.44.17.77]:41051 helo=cambridgebroadband.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KW8ln-0002Uh-JY for help-gnu-emacs@gnu.org; Thu, 21 Aug 2008 07:56:03 -0400 Original-Received: from exchange.cbl.local (exchange.cambridgebroadband.com [212.44.17.76]) by cambridgebroadband.com (8.14.1/8.14.1) with ESMTP id m7LBtFNU003781 for ; Thu, 21 Aug 2008 12:55:39 +0100 Original-Received: from [10.0.0.166] ([10.0.0.166]) by exchange.cbl.local with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Aug 2008 12:52:56 +0100 X-Mailer: Evolution 2.22.3.1 X-OriginalArrivalTime: 21 Aug 2008 11:52:56.0953 (UTC) FILETIME=[73C38690:01C90384] X-Scanned-By: MIMEDefang 2.62 on 212.44.17.77 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 21 Aug 2008 09:14:04 -0400 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:56846 Archived-At: Hi, I want to set-up emacs to start the server once per X sessions (and I guess once per screen session once I get multi-tty working). However there doesn't seem to be way to check in emacs if the server is currently running. So far the best I can come up with is having my start-up emacs with the args: emacs --eval (defvar this-is-the-master t) And appropriate hackery in the .emacs. Is there a nicer way to deal with this? -- Alex Bennee, Software Engineer Civilization, as we know it, will end sometime this evening. See SYSNOTE tomorrow for more information.