From 1f30ab8590bc69c781a44d53ff1cc27c197d2955 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 19 Aug 2025 19:38:11 +0200 Subject: [PATCH] Make sure there are no duplicates in location candidates --- site-lisp/db-org.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index a9d926d..1433f6c 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1918,11 +1918,13 @@ the variables `org-agenda-files', org-agenda-files))) (scope (cond (use-all-org-files - (append (unless current-buffer-is-in-org-agenda-files? ; avoid duplicate entries - (list (buffer-file-name default-buffer))) - (org-agenda-files) - (cl-remove-if-not #'stringp - org-agenda-text-search-extra-files))) + (->> (append (unless current-buffer-is-in-org-agenda-files? ; avoid duplicate entries + (list (buffer-file-name default-buffer))) + (org-agenda-files) + (cl-remove-if-not #'stringp + org-agenda-text-search-extra-files)) + (-map #'file-truename) + (-uniq))) (current-buffer-is-in-org-agenda-files? (org-agenda-files)) (t