From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: How to run server-start only if not already running? Date: Tue, 6 Nov 2007 21:41:42 +0000 (GMT) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1194385322 5867 80.91.229.12 (6 Nov 2007 21:42:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2007 21:42:02 +0000 (UTC) To: Emacs Bugs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 22:42:06 2007 Return-path: Envelope-to: geb-bug-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 1IpWBR-0006Fb-66 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2007 22:42:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpWBG-0001L5-8Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2007 16:41:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpWBB-0001KJ-K5 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 16:41:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpWB9-0001Ih-8h for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 16:41:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpWB8-0001IS-RP for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 16:41:46 -0500 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IpWB8-0007B8-A5 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2007 16:41:46 -0500 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=A6ywsnVHYMbKuUxyJH5eGDBlVqhl574Xef+/5vgTe5HyrBNYpW+fSA04Q361c0NYj9xUyeiqZ/7TI3PZEv3i+PvsEusF4vuWDRup/ADlfdmRqOH0ueF5ZF1hpfdNN4qBM84DigPAa6Mh52AQjKLlIuRRil4jxL+43o0q2bNsKPo= Original-Received: from localhost (cpc4-hitc1-0-0-cust477.lutn.cable.ntl.com [86.11.13.222]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id LGV15644 for ; Tue, 06 Nov 2007 16:41:44 -0500 X-X-Sender: rrt@localhost.localdomain X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16923 Archived-At: Sometimes, normally by error, I start a second Emacs. Since my .emacs runs server-start, this overrides the server I run in my normally-running Emacs. After quitting the erroneously-started Emacs, I no longer have a server and need manually to restart it. Is there some way to run server-start in my .emacs only if there's no server currently? It'd be nice to make this easy! Possibly alternatively, it'd be nice to enable emacsclient to start a server process if there's already a running Emacs but no server running in it. -- http://rrt.sc3d.org/ | dumb blonde, n. susbt. phr. peroxymoron