diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-03-15 16:04:38 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-03-15 16:04:38 +0100 |
commit | ee8d56447925d22e836e463e7c75e5154ac09369 (patch) | |
tree | 7ed6dfd571e9e65e9491780be3d79ad9a290369f | |
parent | 002b451285c946db8292b01e36599a9fe89ee5f6 (diff) | |
download | org-mode-ee8d56447925d22e836e463e7c75e5154ac09369.tar.gz |
Properly unescape optional part in file links
* lisp/org.el (org-open-at-point): Unescape optional part in file
links.
This patch allows to handle properly links like:
[[file:somefile.org::*headline%20with%20spaces]]
Thanks to Thomas Holst for reporting it.
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index cbcc7f9..b1022fd 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10556,7 +10556,8 @@ is used internally by `org-open-link-from-string'." (cond ((not option) nil) ((org-string-match-p "\\`[0-9]+\\'" option) (list (string-to-number option))) - (t (list nil option)))))))) + (t (list nil + (org-link-unescape option))))))))) ((assoc type org-link-protocols) (funcall (nth 1 (assoc type org-link-protocols)) path)) ((equal type "help") |