forked from mirrors/org-mode
commit
d34fa17716
|
@ -1252,10 +1252,8 @@ INFO is a plist holding contextual information. See
|
|||
link org-groff-inline-image-rules))
|
||||
(path (cond
|
||||
((member type '("http" "https" "ftp" "mailto"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((string= type "file")
|
||||
(when (string-match "\\(.+\\)::.+" raw-path)
|
||||
(setq raw-path (match-string 1 raw-path)))
|
||||
(if (file-name-absolute-p raw-path)
|
||||
(concat "file://" (expand-file-name raw-path))
|
||||
(concat "file://" raw-path)))
|
||||
|
|
|
@ -2722,7 +2722,7 @@ INFO is a plist holding contextual information. See
|
|||
(cond
|
||||
((member type '("http" "https" "ftp" "mailto"))
|
||||
(org-link-escape-browser
|
||||
(org-link-unescape (concat type ":" raw-path))))
|
||||
(org-link-unescape (concat type "://" raw-path))))
|
||||
((string= type "file")
|
||||
;; Treat links to ".org" files as ".html", if needed.
|
||||
(setq raw-path
|
||||
|
|
|
@ -1907,7 +1907,7 @@ INFO is a plist holding contextual information. See
|
|||
link org-latex-inline-image-rules))
|
||||
(path (cond
|
||||
((member type '("http" "https" "ftp" "mailto"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((string= type "file")
|
||||
(if (not (file-name-absolute-p raw-path)) raw-path
|
||||
(concat "file://" (expand-file-name raw-path))))
|
||||
|
|
|
@ -646,10 +646,8 @@ INFO is a plist holding contextual information. See
|
|||
|
||||
(path (cond
|
||||
((member type '("http" "https" "ftp" "mailto"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((string= type "file")
|
||||
(when (string-match "\\(.+\\)::.+" raw-path)
|
||||
(setq raw-path (match-string 1 raw-path)))
|
||||
(if (file-name-absolute-p raw-path)
|
||||
(concat "file://" (expand-file-name raw-path))
|
||||
(concat "file://" raw-path)))
|
||||
|
|
|
@ -342,7 +342,7 @@ a communication channel."
|
|||
(path
|
||||
(cond
|
||||
((member type '("http" "https" "ftp"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((equal type "file")
|
||||
(let ((path (funcall link-org-files-as-md raw-path)))
|
||||
(if (not (file-name-absolute-p path)) path
|
||||
|
|
|
@ -2712,7 +2712,7 @@ INFO is a plist holding contextual information. See
|
|||
link org-odt-inline-image-rules))
|
||||
(path (cond
|
||||
((member type '("http" "https" "ftp" "mailto"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((string= type "file")
|
||||
(if (file-name-absolute-p raw-path)
|
||||
(concat "file://" (expand-file-name raw-path))
|
||||
|
|
|
@ -1221,7 +1221,7 @@ INFO is a plist holding contextual information. See
|
|||
(desc (and (not (string= desc "")) desc))
|
||||
(path (cond
|
||||
((member type '("http" "https" "ftp"))
|
||||
(concat type ":" raw-path))
|
||||
(concat type "://" raw-path))
|
||||
((string= type "file")
|
||||
(if (file-name-absolute-p raw-path)
|
||||
(concat "file://" (expand-file-name raw-path))
|
||||
|
|
Loading…
Reference in New Issue