This commit is contained in:
apc 2025-04-29 04:44:10 +00:00 committed by GitHub
commit a8c8291dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,10 @@ which see (but only the files are used)."
(cl-loop for (files-spec . _candidate-spec) in org-refile-targets (cl-loop for (files-spec . _candidate-spec) in org-refile-targets
append (cl-typecase files-spec append (cl-typecase files-spec
(null (list (current-buffer))) (null (list (current-buffer)))
(symbol (pcase (funcall files-spec) (function (pcase (funcall files-spec)
((and (pred stringp) file) (list file))
((and (pred listp) files) files)))
(symbol (pcase (eval files-spec)
((and (pred stringp) file) (list file)) ((and (pred stringp) file) (list file))
((and (pred listp) files) files))) ((and (pred listp) files) files)))
(list files-spec))))))) (list files-spec)))))))