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:
parent
9303717691
commit
b1dcd0fb0b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue