From d4db2699ed44e468d8f4c083bade11e7a1ab9ca3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 15 Aug 2022 00:27:02 +0530 Subject: Do not double prepend directories to filenames. The return value of ennum-directory-files now includes the respective directories. There is no need to prepend the directory again. * ennum.el (ennum-posts, ennum-publish-generic): Do not prepend directory to filename. --- ennum.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ennum.el b/ennum.el index fa0e794..31e5e5f 100644 --- a/ennum.el +++ b/ennum.el @@ -159,8 +159,7 @@ respectively by - and _, and the pad character = is optional." (ennum--filter-map (lambda (file) (when (string= (file-name-extension file) "org") - (ennum-read-post - (ennum--file-join (ennum-setting :posts-directory) file)))) + (ennum-read-post file))) (ennum-directory-files (ennum-setting :posts-directory))))) ;; Group posts by translation group. (seq-group-by @@ -330,8 +329,7 @@ result as a string." (seq-mapcat 'ennum-publish-link (ennum-post-links post))))) (defun ennum-publish-generic (other-files-directory file) - (let ((interned-file (ennum-intern - (ennum--file-join other-files-directory file)))) + (let ((interned-file (ennum-intern file))) (ennum-exp (let ((output-file (pcase (file-name-extension file) -- cgit v1.2.3