From: Reuben Thomas <rrt@sc3d.org>
To: Emacs Bugs <bug-gnu-emacs@gnu.org>
Subject: How to run server-start only if not already running?
Date: Tue, 6 Nov 2007 21:41:42 +0000 (GMT) [thread overview]
Message-ID: <alpine.DEB.0.9999.0711062132520.11917@localhost.localdomain> (raw)
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
next reply other threads:[~2007-11-06 21:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 21:41 Reuben Thomas [this message]
2007-11-06 23:35 ` How to run server-start only if not already running? Andreas Schwab
2007-11-06 23:38 ` Reuben Thomas
2007-11-06 23:56 ` Lennart Borgman (gmail)
2007-11-07 0:00 ` Reuben Thomas
2007-11-06 23:46 ` Reuben Thomas
2007-11-07 7:56 ` Richard Stallman
2007-11-07 9:42 ` Andreas Schwab
2007-11-08 4:41 ` Richard Stallman
2007-11-08 9:49 ` Andreas Schwab
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=alpine.DEB.0.9999.0711062132520.11917@localhost.localdomain \
--to=rrt@sc3d.org \
--cc=bug-gnu-emacs@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).