浏览代码

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 年之前
父节点
当前提交
b1dcd0fb0b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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