summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2014-06-18 17:22:21 (GMT)
committer Nicolas Goaziou <mail@nicolasgoaziou.fr>2014-06-18 17:22:21 (GMT)
commitb1dcd0fb0bec6b523c900bc1304fbe834c21697d (patch)
tree7098270e82b1aed03d9c043e7eab8677d358cfee
parent9303717691c2ffc7e38906ba15e63e795b324465 (diff)
downloadorg-mode-b1dcd0fb0bec6b523c900bc1304fbe834c21697d.zip
org-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