From f9a4628c94893937ea8f393b3b060acbaa888c61 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 30 Jun 2025 14:35:08 +0100 Subject: Return absolute paths even when input path is not absolute. * ennum.el (ennum-directory-files): Return absolute paths even if input path is not an absolute path. --- ennum.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ennum.el b/ennum.el index a271fa6..57c2705 100644 --- a/ennum.el +++ b/ennum.el @@ -437,7 +437,14 @@ INCLUDE-DIRECTORIES is non-nil, include directories in the output." (let* ((directory (or directory default-directory)) (files (directory-files-recursively - directory (rx anything) include-directories))) + ;; `directory-files-recursively' returns absolute + ;; paths only if `directory' is itself an absolute + ;; path. + (if full + (expand-file-name directory) + directory) + (rx anything) + include-directories))) (if full files (seq-map (apply-partially 'string-remove-prefix -- cgit v1.2.3