emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: Gonzalo Camarillo <gcamaril@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Emacs server and org-protocol
Date: Wed, 17 Sep 2014 09:46:09 +0200	[thread overview]
Message-ID: <CAFgFV9OSVjXNYNJ3Ss5Mv0yjk4_KnqTsV1fA=5MwgmUkk2sNeA@mail.gmail.com> (raw)
In-Reply-To: <541937A2.3040405@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]

What is the purpose of opening a second instance of emacs ?
I precisely tend to avoid it.

If the emacs server is running, why not using emacsclient(w) instead of a
new instance ?

Fabrice

2014-09-17 9:26 GMT+02:00 Gonzalo Camarillo <gcamaril@gmail.com>:

> Hi,
>
> I am using org-protocol to have my firefox browser talk to my emacs (to
> capture stuff).
>
> I am using Windows 7. So, I cannot use the --daemon flag to simply start
> a sever (it is not supported under Windows). Instead, I have added a
> (server-start) line to my .emacs file (init.el).
>
> When I run emacs for the first time, everything works correctly (i.e.,
> the server starts and I can connect to it from firefox). However, when I
> open a second instance of emacs, it processes again the .emacs file and,
> thus, I get the following error:
>
> > Warning (server): Unable to start the Emacs server.
> > There is an existing Emacs server, named "server".
> > To start the server in this Emacs process, stop the existing
> > server or call `M-x server-force-delete' to forcibly disconnect it.
>
> Does anybody know a workaround so that the server is only started
> once?... maybe in connection to opening a particular .org file?
>
> Thanks,
>
> Gonzalo
>
>
>


-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 2048 bytes --]

  parent reply	other threads:[~2014-09-17  7:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17  7:26 Emacs server and org-protocol Gonzalo Camarillo
2014-09-17  7:36 ` Paul Rudin
2014-09-17  8:17   ` Gonzalo Camarillo
2014-09-17  7:46 ` Fabrice Popineau [this message]
2014-09-17  7:56   ` Paul Rudin
2014-09-17  8:43     ` Fabrice Popineau
2014-09-17  8:54       ` Alexis
2014-09-17  9:06         ` Eric S Fraga
2014-09-17  9:13           ` Alexis
2014-09-17  9:41           ` Fabrice Popineau
2014-09-17 10:57             ` Eric S Fraga
2014-09-17 13:50             ` Stefan Huchler
2014-09-17 14:03               ` Rainer M Krug
2014-09-17 20:11                 ` Stefan Huchler
2014-09-18  1:03                   ` Alexis
2014-09-17 19:57         ` Brett Viren
2014-09-17  8:03   ` Thorsten Jolitz

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFgFV9OSVjXNYNJ3Ss5Mv0yjk4_KnqTsV1fA=5MwgmUkk2sNeA@mail.gmail.com' \
    --to=fabrice.popineau@supelec.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=gcamaril@gmail.com \
    /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/org-mode.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).