emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: d.tchin <d.tchin@voila.fr>
To: emacs-orgmode@gnu.org
Subject: Re: org-protocol in windows and Acrobat Reader
Date: Mon, 19 Mar 2012 08:03:51 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120319T085337-732@post.gmane.org> (raw)
In-Reply-To: <87d389pt7f.wl%dmaus@ictsoc.de>

> 
> This indicates that .replace('|',':') didn't work out as expected and
> org-protocol received
> 
> org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf
>                                              ^^^
> 
> Maybe this could do the trick:
> 
> ,----
> | app.addMenuItem({cName:"org-store-link", cParent:"File",
> |  		 cExec:"app.launchURL('org-protocol://store-link://'+ unescape
> |  (encodeURIComponent(this.URL.replace('|',':'))));"});
> `----
>

Indeed  I get the corresponding character. 
org-protocol://store-link://file:///C:/Temp/file.pdf

The problem of the bad interpretation of the character "/" still remains when 
I go back to emacs. I get the following proposition when I use C-c C-l : file: 
(C:). 

Thank you for your help.


> I.e. replace | by : in the original URL before encoding it.
> 
> Best,
>   -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena <at> jabber.org
> Email..... dmaus <at> ictsoc.de
> 

      reply	other threads:[~2012-03-19  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 20:16 d.tchin
2012-03-18 20:09 ` David Maus
2012-03-19  8:03   ` d.tchin [this message]

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=loom.20120319T085337-732@post.gmane.org \
    --to=d.tchin@voila.fr \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: org-protocol in windows and Acrobat Reader' \
    /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

Code repositories for project(s) associated with this 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).