[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 4ce2ad4eb1 3/3: lisp/org.el (org-agenda-files): Avo
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/org 4ce2ad4eb1 3/3: lisp/org.el (org-agenda-files): Avoid duplicates |
|
Date: |
Wed, 17 Jan 2024 06:58:30 -0500 (EST) |
branch: externals/org
commit 4ce2ad4eb18d736e6358b447513586884b7f216e
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
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
---
lisp/org.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 6c9ff30267..bd4537f5aa 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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.