summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2014-06-18 19:22:21 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2014-06-18 19:22:21 +0200
commitb1dcd0fb0bec6b523c900bc1304fbe834c21697d (patch)
tree7098270e82b1aed03d9c043e7eab8677d358cfee
parent9303717691c2ffc7e38906ba15e63e795b324465 (diff)
downloadorg-mode-b1dcd0fb0bec6b523c900bc1304fbe834c21697d.tar.gz
org-element: Do not expand file name when parsing links
* lisp/org-element.el (org-element-link-parser): Do not expand file name when parsing links so that Tramp doesn't kick in. Thanks to Sébastien Vauban for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/87696
-rw-r--r--lisp/org-element.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-element.el b/lisp/org-element.el
index e768aac..5af513f 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -3015,7 +3015,7 @@ Assume point is at the beginning of the link."
;; Normalize URI.
(when (and (not (org-string-match-p "\\`//" path))
(file-name-absolute-p path))
- (setq path (concat "//" (expand-file-name path))))
+ (setq path (concat "//" path)))
;; Make sure TYPE always reports "file".
(setq type "file"))
(list 'link