lisp/org.el (org-agenda-files): Avoid duplicates

Duplicate entries in agenda files cause scanning the same file
twice, producing duplicates in the agenda.

Reported-by: Christopher M. Miles <numbchild@gmail.com>
Link: https://orgmode.org/list/65a75fd3.170a0220.be4f3.67c9@mx.google.com
This commit is contained in:
Ihor Radchenko 2024-01-17 12:52:37 +01:00
parent 490260ceb8
commit 4ce2ad4eb1
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -15419,7 +15419,7 @@ used by the agenda files. If ARCHIVE is `ifmode', do this only if
(when (or (eq archives t)
(and (eq archives 'ifmode) (eq org-agenda-archives-mode t)))
(setq files (org-add-archive-files files)))
files))
(delete-dups files)))
(defun org-agenda-file-p (&optional file)
"Return non-nil, if FILE is an agenda file.