From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Escaping links Date: Fri, 11 Aug 2017 15:26:50 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11472a8636735305567a45fc" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg9y6-0005ki-A9 for emacs-orgmode@gnu.org; Fri, 11 Aug 2017 09:27:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg9y5-000188-9n for emacs-orgmode@gnu.org; Fri, 11 Aug 2017 09:27:14 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:37672) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg9y5-00017d-4t for emacs-orgmode@gnu.org; Fri, 11 Aug 2017 09:27:13 -0400 Received: by mail-qk0-x233.google.com with SMTP id z18so20137239qka.4 for ; Fri, 11 Aug 2017 06:27:11 -0700 (PDT) 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" To: "emacs-orgmode@gnu.org" --001a11472a8636735305567a45fc Content-Type: text/plain; charset="UTF-8" Hi, Are links to a file whose name already holds (url-)escaped chars supported? If I have a directory named "c:/temp/foo bar/" and files in this directory named foo.txt foo bar.txt foo%2Fbar.txt I can create links in an Org buffer by using `insert' but I find the situation a bit confusing. #+LINK: temp file:c:/temp/%s 1. [[temp:foo bar/foo bar.txt]] 2. [[temp:foo%20bar/foo bar.txt]] 3. [[temp:foo bar/foo%20bar.txt]] 4. [[temp:foo%20bar/foo%20bar.txt]] All of these links seem to work the same way. 5. [[temp:foo bar/foo%2Fbar.txt]] 6. [[temp:foo bar/foo%252Fbar.txt]] 7. [[temp:foo%20bar/foo%252Fbar.txt]] Link 5 does not work. Link 6 and 7 do work: as long as I press enter on the link, I visit the file. Unfortunately, if I edit these links with 'C-c C-l', doing nothing (return), Org replaces the escaped chars and unescape them. I have grabbed files whose name hold such %2F %3A and so on escaped chars. Do I have any option to make a link point at them or should I rename them? Regards, Fabrice --001a11472a8636735305567a45fc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Are links to a file whose name alre= ady holds (url-)escaped chars supported?

If I have= a directory named "c:/temp/foo bar/"
and files in this= directory named
foo.txt
foo bar.txt
foo%2Fba= r.txt

I can create links in an Org buffer by using= `insert' but I find the situation a bit confusing.

#+LINK: temp file:c:/temp/%s

1. [[temp:foo b= ar/foo bar.txt]]
2. [[temp:foo%20bar/foo bar.txt]]
3. [[temp:foo bar/foo%20bar.txt]]
4. [[tem= p:foo%20bar/foo%20bar.txt]]


A= ll of these links seem to work the same way.

= 5. [[temp:foo bar/foo%2Fbar.txt]]
6. [[temp:foo bar/fo= o%252Fbar.txt]]
7. [[temp:foo%20bar/foo%252Fbar.txt]]<= br>

Link 5 does not work.

Link 6 and 7 do work: as long as I press enter on the link, I visit = the file.

Unfortunately, if I edit these link= s with 'C-c C-l', doing nothing (return), Org replaces the escaped = chars and unescape them.

I have grabbed file= s whose name hold such %2F %3A and so on escaped chars.
Do I have= any option to make a link point at them or should I rename them?

Regards,

Fabrice

--001a11472a8636735305567a45fc--