From b1dcd0fb0bec6b523c900bc1304fbe834c21697d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 18 Jun 2014 19:22:21 +0200 Subject: [PATCH] org-element: Do not expand file name when parsing links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- lisp/org-element.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index e768aac7d..5af513f56 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