Skip to content

Commit

Permalink
Bug fix: repeating events appeared multiple times
Browse files Browse the repository at this point in the history
The bug was that a repeating event appeared multiple times at the first
day it was scheduled/deadline; the reason is this package scrapes the
agenda for data and in day-mode an individual repeating events appears
in all the future dates so need to dedup it.
  • Loading branch information
danielfleischer committed Jan 8, 2023
1 parent 26ab323 commit 9a8ea33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion calfw-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,16 @@ For example,
(when (buffer-live-p org-agenda-buffer)
org-agenda-buffer))
(org-compile-prefix-format nil)
(delete-duplicates
(loop for date in (cfw:enumerate-days begin end) append
(loop for file in (or cfw:org-icalendars (org-agenda-files nil 'ifmode))
append
(progn
(org-check-agenda-file file)
(apply 'org-agenda-get-day-entries
file date
cfw:org-agenda-schedule-args))))))
cfw:org-agenda-schedule-args))))
:test (lambda (x y) (equal (cfw:org-tp x 'time) (cfw:org-tp y 'time))))))

(defun cfw:org-onclick ()
"Jump to the clicked org item."
Expand Down

0 comments on commit 9a8ea33

Please sign in to comment.