From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gonzalo Camarillo Subject: Re: Emacs server and org-protocol Date: Wed, 17 Sep 2014 10:17:26 +0200 Message-ID: References: <541937A2.3040405@gmail.com> <871trabsw0.fsf@rudin.co.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2a0f495da6f05033e7fc3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUAQj-0002mb-CV for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 04:17:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUAQd-0000w6-6u for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 04:17:37 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:56390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUAQc-0000vo-Ue for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 04:17:31 -0400 Received: by mail-la0-f52.google.com with SMTP id gq15so1369433lab.11 for ; Wed, 17 Sep 2014 01:17:27 -0700 (PDT) In-Reply-To: <871trabsw0.fsf@rudin.co.uk> 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: Paul Rudin Cc: emacs-orgmode@gnu.org --001a11c2a0f495da6f05033e7fc3 Content-Type: text/plain; charset=UTF-8 Hi Paul, yes, adding (require 'server) makes the function available. That is exactly what I was looking for. Thanks for the quick response! Cheers, Gonzalo On Wed, Sep 17, 2014 at 9:36 AM, Paul Rudin wrote: > Gonzalo Camarillo writes: > > > > Does anybody know a workaround so that the server is only started > > once?... > > Does the function server-running-p work on windows? If so then you can > replace (server-start) with (unless (server-running-p) (server-start)). > > > > --001a11c2a0f495da6f05033e7fc3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Paul,

yes, adding (require 'server) makes the function avai= lable. That is exactly what I was looking for. Thanks for the quick respons= e!

Cheers,

Gonzalo


On Wed, Sep 17, = 2014 at 9:36 AM, Paul Rudin <paul@rudin.co.uk> wrote:
Gonzalo Camarillo <gcamaril@gmail.com> writes:


> Does anybody know a workaround so that the server is only started
> once?...

Does the function server-running-p work on windows? If so then you c= an
replace (server-start) with (unless (server-running-p) (server-start)).




--001a11c2a0f495da6f05033e7fc3--