From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jochen_K=FCpper?= Newsgroups: gmane.emacs.help Subject: Re: automatic selection of emacsclient/emacs? Date: Wed, 08 Jun 2005 09:56:53 +0200 Organization: Fritz-Haber-Institut der MPG Message-ID: <9ed5qx703e.fsf@gowron.rz-berlin.mpg.de> References: <2cydneqEPbdzxTvfRVn-uw@speakeasy.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118218518 1116 80.91.229.2 (8 Jun 2005 08:15:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2005 08:15:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Jun 08 10:15:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfvhT-00050o-By for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2005 10:14:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dfvlw-00071m-RH for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2005 04:18:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfvaB-00049J-3i for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 08 Jun 2005 04:06:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfvZw-00045K-N9 for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 08 Jun 2005 04:06:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfvZw-00045C-2k for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 08 Jun 2005 04:06:24 -0400 Original-Received: from [141.14.130.154] (helo=duras.rz-berlin.mpg.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DfvUJ-0001eY-2p for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 08 Jun 2005 04:00:35 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by duras.rz-berlin.mpg.de (Postfix) with ESMTP id 26C4CED677 for ; Wed, 8 Jun 2005 09:56:52 +0200 (CEST) Original-Received: from duras.rz-berlin.mpg.de ([127.0.0.1]) by localhost (duras [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 93484-01 for ; Wed, 8 Jun 2005 09:56:49 +0200 (CEST) Original-Received: from gowron.rz-berlin.mpg.de.fhi-berlin.mpg.de (gowron.RZ-Berlin.MPG.DE [141.14.130.77]) by duras.rz-berlin.mpg.de (Postfix) with ESMTP id 3BFEAED304 for ; Wed, 8 Jun 2005 09:56:49 +0200 (CEST) Original-To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org In-Reply-To: <2cydneqEPbdzxTvfRVn-uw-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org> (Hattuari's message of "Tue, 07 Jun 2005 22:32:59 -0400") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUcGRSqioSCPi7Cwbxu Vk5MQjycXkxMKiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFG2qEAAAB5klEQVR42nXUwY7aMBAA UK8E4tqpI/fMKIWzFdBewcwm10WA9tpksz6zFci/37GdxF7a+mLwi2fGQ4yo/jPE9AkaIcRM/gU7 EcfTA/zgtWsuEfRmWPVjlsOryMYpAYgvYz9B8RXmhxHEw/gcQD+sz/cDbMLXhbu7a6j6Nob6FuDW U21+uje8nuUA/rnXxR4ArCWi5jhWJSJUmoWop7HckPt+Bz6PsrYmexgg5HY3CDvKuq/lAM9hB4VQ HfZEMt8xj2BLSrD1cDlThNJMoXSEWnroDJr3HM5nDtUbRIPuluDqLlx8YdYuh0o87S6+DWANUrn+ Pf0eO7vh1Awf98XKXi/jAatnCwU/Bebl5pZqjRNs2xa4IcoqdEuN5QSbFn3pYLkqqbtyLLfSEbQi XEn4jsvpZRiAO7UCUCYBhE7zhAgSclAyToiSO5xgA+8RONYqD6X3YYdWnakJU1WVPsaI0LXU5VBF kMr6aJTBPk4KfP5SJoAYEXpE5/4FVnVrpHQ/tny/pAduZl/bBDsGLbkqD7ZN0PgbCfwucPL49gzd pZmPw22SoPoc+iZkAL+J6nRrdQEHf+4Qqm4TFJJ8idxYrumY/QEAFHQI65xhcZqgOEHhTAhk6WUu jgPohnc4wgD21+zN+c79AZmNym6Cgz4IAAAAAElFTkSuQmCC X-Archive: encrypt X-Attribution: Jochen OpenPGP: id=CC1B0B4D; url=http://jochen-kuepper.de/computer/keys.asc X-Request-PGP: http://jochen-kuepper.de/computer/keys.asc X-URL: http://jochen-kuepper.de Original-Lines: 30 X-Virus-Scanned: by amavisd-new (PP&B) at duras X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:27339 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27339 Hattuari writes: > Is there a clean way to get Emacs to start as a client when there is an > available server? RTFM ,----[ (info "(emacs)Invoking emacsclient") ] | The option `--alternate-editor=3DCOMMAND' is useful when running | `emacsclient' in a script. It specifies a command to run if | `emacsclient' fails to contact Emacs. For example, the following | setting for the EDITOR environment variable will always give you an | editor, even if no Emacs server is running: |=20 | EDITOR=3D"emacsclient --alternate-editor emacs +%d %s" |=20 | The environment variable ALTERNATE_EDITOR has the same effect, but the | value of the `--alternate-editor' takes precedence. |=20 | Alternatively, the file `etc/emacs.bash' defines a bash function | which will communicate with a running Emacs server, or start one if | none exists. `---- Greetings, Jochen --=20 Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Libert=E9, =C9galit=E9, Fraternit=E9 GnuPG key: CC1B0B4D (Part 3 you find in my messages before fall 2003.)