From d3cd2b0519b53766a5454155b012e0a75e139ade Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 18 Jul 2022 02:05:45 +0800 Subject: [PATCH] Call pandoc in the in-file directory --- org-pandoc-import.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-pandoc-import.el b/org-pandoc-import.el index bed9913..a98840f 100644 --- a/org-pandoc-import.el +++ b/org-pandoc-import.el @@ -252,6 +252,7 @@ The value returned is used as the new IN-FILE." (if (functionp org-pandoc-import-buffer-name) (funcall org-pandoc-import-buffer-name in-file) org-pandoc-import-buffer-name))) + (default-directory (file-name-directory in-file)) (process (if syncronous-p (apply #'call-process