mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 23:02:53 +00:00
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:
parent
490260ceb8
commit
4ce2ad4eb1
|
@ -15419,7 +15419,7 @@ used by the agenda files. If ARCHIVE is `ifmode', do this only if
|
||||||
(when (or (eq archives t)
|
(when (or (eq archives t)
|
||||||
(and (eq archives 'ifmode) (eq org-agenda-archives-mode t)))
|
(and (eq archives 'ifmode) (eq org-agenda-archives-mode t)))
|
||||||
(setq files (org-add-archive-files files)))
|
(setq files (org-add-archive-files files)))
|
||||||
files))
|
(delete-dups files)))
|
||||||
|
|
||||||
(defun org-agenda-file-p (&optional file)
|
(defun org-agenda-file-p (&optional file)
|
||||||
"Return non-nil, if FILE is an agenda file.
|
"Return non-nil, if FILE is an agenda file.
|
||||||
|
|
Loading…
Reference in a new issue