From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Emacs server and org-protocol Date: Wed, 17 Sep 2014 09:46:09 +0200 Message-ID: References: <541937A2.3040405@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01295400da301e05033e109d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU9wr-0003Ff-1L for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:46:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XU9we-0001JE-Uh for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:46:44 -0400 Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]:54696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU9we-0001IW-QG for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:46:32 -0400 Received: by mail-oa0-f44.google.com with SMTP id m1so37711oag.17 for ; Wed, 17 Sep 2014 00:46:29 -0700 (PDT) In-Reply-To: <541937A2.3040405@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gonzalo Camarillo Cc: "emacs-orgmode@gnu.org" --089e01295400da301e05033e109d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 : > 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 > > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --089e01295400da301e05033e109d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
What is the purpose of opening a second instance of emacs = ?=C2=A0
I precisely tend to avoid it.

If the e= macs server is running, why not using emacsclient(w) instead of a new insta= nce ?

Fabrice

2014-09-17 9:26 GMT+02:00 Gonzalo Camarill= o <gcamaril@gmail.com>:
H= i,

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 Popi= neau
-----------------------------
SUPELEC
D=C3=A9p= artement Informatique
3, rue Joliot Curie
91192 Gif/Yve= tte Cedex
Tel direct : +33 (0) 169851950
Standard : +33= (0) 169851212
------------------------------

--089e01295400da301e05033e109d--