From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Elliott Newsgroups: gmane.emacs.help Subject: Re: automatic selection of emacsclient/emacs? Date: Sun, 12 Jun 2005 09:29:47 -0500 Organization: Cox Communications Message-ID: References: <2cydneqEPbdzxTvfRVn-uw@speakeasy.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118586340 27483 80.91.229.2 (12 Jun 2005 14:25:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2005 14:25:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 12 16:25:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhTP1-0006DL-TL for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jun 2005 16:25:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhTTd-0001N0-4u for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jun 2005 10:30:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!cox.net!news-xfer.cox.net!p01!okepread04.POSTED!53ab2750!not-for-mail User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <2cydneqEPbdzxTvfRVn-uw@speakeasy.net> Original-Lines: 18 Original-NNTP-Posting-Host: 68.229.163.92 Original-X-Complaints-To: abuse@cox.net Original-X-Trace: okepread04 1118586587 68.229.163.92 (Sun, 12 Jun 2005 10:29:47 EDT) Original-NNTP-Posting-Date: Sun, 12 Jun 2005 10:29:47 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:131957 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:27427 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27427 Hattuari wrote: > Is there a clean way to get Emacs to start as a client when there is an > available server? I find it moderately annoying to have to look around to > see if there is already an instance of Emacs started in order to determine > if I should enter `emacs' or `emacsclient'. I much prefer running > emacsclient when I already have one instance of Emacs running. One option > is to try and sniff for emacs with ps and filter out the current processes > such as grep emacs, and (assuming the script I'm running is also called > emacs) the launch script. It would seem more correct to directly check to > see if the service is available. Is there such a capability? Will I get flammed if I ask what the benefit of running emacs as a client (opposed to the "usual" way) would be? Could this be an alternative to using TRAMP? Thanks. - dan