[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: server.el problem ?

From: Tassilo Horn
Subject: Re: server.el problem ?
Date: Wed, 01 Aug 2012 16:25:59 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Fabrice Popineau <address@hidden> writes:

Hi Fabrice,

> javascript:location.href='org-protocol://capture://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+
> encodeURIComponent(window.getSelection())
> but org-protocol failed to capture anything. The reason was that the
> emacsclientw.exe directory was added to the org-protocol url.
> I traced the problem to server.el and I had to patch it this way:
> [patch]
> to prevent addition of the current directory to the org-protocol url.
> This is a crude patch, but anyway, I have the feeling nothing should be
> added to 'file' when it is 'absolute' or when it is a url like in this
> case.
> Have I done something wrong? Or is there a problem here ?

Dunno exactly, but at least for me typing

  % emacsclient org-protocol://capture://www.google.de

in a terminal while the emacs server is running opens a new org capture
buffer with a link to www.google.de prefilled, no nothing's added.
AFAIKS, that's exactly what your javascript snippet also does, isn't it?

I run a very recent bzr emacs, so maybe the problem is already solved in
between 24.1 and now...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]