Forráskód Böngészése

org-e-latex: Expand path when file name is absolute in an inline image

* EXPERIMENTAL/org-e-latex.el (org-e-latex-link): In links, expand
  path when file name is absolute.
Nicolas Goaziou 13 éve
szülő
commit
cb8847f6fe
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      EXPERIMENTAL/org-e-latex.el

+ 3 - 1
EXPERIMENTAL/org-e-latex.el

@@ -1360,7 +1360,9 @@ INFO is a plist holding contextual information.  See
 	 (path (cond
 		((member type '("http" "https" "ftp" "mailto"))
 		 (concat type ":" raw-path))
-		((and (not imagep) (string= type "file"))
+		(imagep (if (not (file-name-absolute-p raw-path)) raw-path
+			  (expand-file-name 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)