From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gonzalo Camarillo Subject: Emacs server and org-protocol Date: Wed, 17 Sep 2014 09:26:26 +0200 Message-ID: <541937A2.3040405@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU9dT-00037c-4a for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XU9dI-0003We-Lg for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:26:43 -0400 Received: from sessmg22.ericsson.net ([193.180.251.58]:64109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU9dI-0003Vt-Eb for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 03:26:32 -0400 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: emacs-orgmode@gnu.org 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