From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kgold Newsgroups: gmane.emacs.help Subject: Re: Check for other running emacs sessions? Date: Thu, 06 Apr 2006 08:49:08 -0400 Organization: Global Network Services - Remote Access Mail & News Services Message-ID: <44350e45@kcnews01> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144330857 10661 80.91.229.2 (6 Apr 2006 13:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 13:40:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 06 15:40:56 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FRUio-0004TS-48 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Apr 2006 15:40:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRUin-0005Mi-DS for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Apr 2006 09:40:25 -0400 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-NNTP-Posting-Host: yktgi01e0-s5.watson.ibm.com Original-X-Trace: kcnews01 1144327749 129.34.20.19 (6 Apr 2006 13:49:09 GMT) Original-Lines: 20 Original-X-Complaints-To: abuse@prserv.net Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn12feed!worldnet.att.net!12.154.55.81!kcnewsm01.prserv.net!prserv.net!kcnews01!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:138572 Original-To: help-gnu-emacs@gnu.org 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:34190 Archived-At: A better solution is to run only one emacs server and connect multiple clients to it. That is, start gnuserv as part of your login script. Use gnuclient to edit files. The main advantage is that the client starts much faster than the server. noreply@u.wasshington.edu wrote: > Hello, > > I typically have three different instances of emacs running at the > same time. I'd like to put something in my .emacs file to check if > another instance is running and if so, not do something > (activate-appt). I haven't been able to find anything on it, but > perhaps I'm not using the right terms. Is there a way to do this in > emacs, or should I call a shell script that greps for 'emacs' in ps > output? > > Thank you for any thoughts or suggestions. > > Brian