From 80cd7557e147ccd0abef05ff4eafb93fe9545ad4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 5 May 2022 20:27:22 +0200 Subject: [PATCH] fix(lib): doom-files-in's :map causing type errors This regression was introduced in 10d00b7cc433, causing "wrong-type-argument: stringp (X . Y)" errors. It is triggered when doom-files-in is used with a non-nil :map on a nested directory tree (like our module tree). Fix: #6370 Amend: 10d00b7cc433 --- core/autoload/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/autoload/files.el b/core/autoload/files.el index 7fd96d57f..03681ebd6 100644 --- a/core/autoload/files.el +++ b/core/autoload/files.el @@ -118,7 +118,8 @@ MATCH is a string regexp. Only entries that match it will be included." (apply #'doom-files-in file (append (list :mindepth (1- mindepth) :depth (1- depth) - :relative-to relative-to) + :relative-to relative-to + :map nil) rest))))) ((and (memq type '(t files)) (string-match-p match file)