From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacsclient wrapper to launch emacs server if none running?
Date: Tue, 04 Oct 2005 03:33:54 +0200 [thread overview]
Message-ID: <85ek72oykd.fsf@lola.goethe.zz> (raw)
In-Reply-To: <4341D715.4010400@redhat.com> (Jens Petersen's message of "Tue, 04 Oct 2005 10:12:53 +0900")
Jens Petersen <petersen@redhat.com> writes:
> Does anyone have an emacsclient wrapper script or program which
> can reliably launch emacs with server-start if none is running?
>From the Emacs manual:
The option `--alternate-editor=COMMAND' 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:
EDITOR="emacsclient --alternate-editor emacs +%d %s"
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-10-04 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 1:12 emacsclient wrapper to launch emacs server if none running? Jens Petersen
2005-10-04 1:33 ` David Kastrup [this message]
2005-10-04 7:12 ` Lennart Borgman
2005-10-05 11:32 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85ek72oykd.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).