summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2018-04-26 21:52:39 +0200
committerBastien <bzg@gnu.org>2018-04-26 21:52:39 +0200
commitb1d084c1ab877a58b342ae4a8b8d844b9b54e625 (patch)
treef7ec41626a0c9b1075941bde9c8f595503d42847
parent407014e0684796862a1b1d707717f4fdbdccc7da (diff)
downloadorg-mode-b1d084c1ab877a58b342ae4a8b8d844b9b54e625.tar.gz
org.el: Fix bug when links contain special characters
* lisp/org.el (org-open-link-from-string): Fix bug when links contain special characters. Thanks to Joon Ro for reporting this.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 600693b..ebe9ace 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10539,7 +10539,7 @@ Raise an error when there is nothing to follow. "
(with-temp-buffer
(let ((org-inhibit-startup (not reference-buffer)))
(org-mode)
- (insert s)
+ (insert (org-link-escape s))
(goto-char (point-min))
(when reference-buffer
(setq org-link-abbrev-alist-local