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: Wed, 20 Aug 2008 13:48:21 +0100 Message-ID: <1219236501.29627.21.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 1219324543 21128 80.91.229.12 (21 Aug 2008 13:15:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 13:15:43 +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:16:33 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 1KWA1Q-0000so-RS for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 15:16:17 +0200 Original-Received: from localhost ([127.0.0.1]:59203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWA0T-0005dd-6V for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 09:15:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVn5i-0004j7-GK for help-gnu-emacs@gnu.org; Wed, 20 Aug 2008 08:47:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVn5h-0004iv-41 for help-gnu-emacs@gnu.org; Wed, 20 Aug 2008 08:47:09 -0400 Original-Received: from [199.232.76.173] (port=57774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVn5g-0004is-UK for help-gnu-emacs@gnu.org; Wed, 20 Aug 2008 08:47:08 -0400 Original-Received: from mailhost.cambridgebroadband.com ([212.44.17.77]:47424 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 1KVn5g-0002Va-Fm for help-gnu-emacs@gnu.org; Wed, 20 Aug 2008 08:47:08 -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 m7KCkwBh030200 for ; Wed, 20 Aug 2008 13:46:58 +0100 Original-Received: from [10.0.0.166] ([10.0.0.166]) by exchange.cbl.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 Aug 2008 13:46:21 +0100 X-Mailer: Evolution 2.22.3.1 X-OriginalArrivalTime: 20 Aug 2008 12:46:22.0109 (UTC) FILETIME=[BFC5C4D0:01C902C2] 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:56840 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.