diff --git a/contrib/lisp/ox-groff.el b/contrib/lisp/ox-groff.el index e741ed183..7b110a1c4 100644 --- a/contrib/lisp/ox-groff.el +++ b/contrib/lisp/ox-groff.el @@ -1251,8 +1251,9 @@ INFO is a plist holding contextual information. See (imagep (org-export-inline-image-p link org-groff-inline-image-rules)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) + ((member type '("http" "https" "ftp")) (concat type "://" raw-path)) + ((string= type "mailto") (concat type ":" raw-path)) ((string= type "file") (if (file-name-absolute-p raw-path) (concat "file://" (expand-file-name raw-path)) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 5568fc85a..5ccc8e772 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2720,9 +2720,12 @@ INFO is a plist holding contextual information. See (desc (org-string-nw-p desc)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) + ((member type '("http" "https" "ftp")) (org-link-escape-browser (org-link-unescape (concat type "://" raw-path)))) + ((string= type "mailto") + (org-link-escape-browser + (org-link-unescape (concat type ":" raw-path)))) ((string= type "file") ;; Treat links to ".org" files as ".html", if needed. (setq raw-path diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2cdc2c7ac..08ea285b9 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1906,8 +1906,9 @@ INFO is a plist holding contextual information. See (imagep (org-export-inline-image-p link org-latex-inline-image-rules)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) + ((member type '("http" "https" "ftp")) (concat type "://" raw-path)) + ((string= type "mailto") (concat type ":" raw-path)) ((string= type "file") (if (not (file-name-absolute-p raw-path)) raw-path (concat "file://" (expand-file-name raw-path)))) diff --git a/lisp/ox-man.el b/lisp/ox-man.el index 0db506fd5..6fa238b12 100644 --- a/lisp/ox-man.el +++ b/lisp/ox-man.el @@ -645,8 +645,9 @@ INFO is a plist holding contextual information. See (desc (and (not (string= desc "")) desc)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) + ((member type '("http" "https" "ftp")) (concat type "://" raw-path)) + ((string= type "mailto") (concat type ":" raw-path)) ((string= type "file") (if (file-name-absolute-p raw-path) (concat "file://" (expand-file-name raw-path)) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 8b0c401a0..07848e85e 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2711,8 +2711,9 @@ INFO is a plist holding contextual information. See (imagep (org-export-inline-image-p link org-odt-inline-image-rules)) (path (cond - ((member type '("http" "https" "ftp" "mailto")) + ((member type '("http" "https" "ftp")) (concat type "://" raw-path)) + ((string= type "mailto") (concat type ":" raw-path)) ((string= type "file") (if (file-name-absolute-p raw-path) (concat "file://" (expand-file-name raw-path))