Browse Source

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
Nicolas Goaziou 11 years ago
parent
commit
b1dcd0fb0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-element.el

+ 1 - 1
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