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
This commit is contained in:
Nicolas Goaziou 2014-06-18 19:22:21 +02:00
parent 9303717691
commit b1dcd0fb0b
1 changed files with 1 additions and 1 deletions

View File

@ -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