From: Doug Hellmann <doug.hellmann@gmail.com>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Cc: suckling@gmail.com
Subject: need help with org-mac-iCal and long-standing recurring events
Date: Sat, 7 Nov 2009 12:58:27 -0500 [thread overview]
Message-ID: <EB7984CB-FA0A-4543-9F26-03CD3AE47280@gmail.com> (raw)
I've submitted a couple of patches to org-mac-iCal recently, but this
latest problem is beyond my lisp skills to fix.
org-mac-iCal imports entries from iCal into the diary so they can be
displayed in org-mode's agenda views. It limits the imported entries
based on a date range managed org-mac-iCal-range so that the diary is
not full of old items, slowing down processing.
The date range filtering does not take recurring events into account,
though. If the date range is set to eliminate items older than 1
month and a recurring item started 2 months ago, it is ignored. This
is true even if the event has no end-date set and it would recur
within the desired date range.
The function in question is omi-import-ics in contrib/lisp/org-mac-
iCal.el. I *think* the section I need to modify starts on line 168:
(when (or
(and
(= yearEntry year)
(or (< monthEntry (- month (/ org-mac-iCal-range 2))) (> monthEntry
(+ month (/ org-mac-iCal-range 2)))))
(< yearEntry (- year 1))
(> yearEntry (+ year 1))
(and
(= yearEntry (- year 1)) (/= monthEntry 12))
(and
(= yearEntry (+ year 1)) (/= monthEntry 1)))
(delete-region startEntry endEntry))))
As a first attempt, I tried changing the filtering so that events with
an RRULE property set (indicating a recurrence rule) are always
imported into the diary, but somehow managed to introduce an infinite
loop to the filter.
So I'm looking for someone with better lisp skills who can advise me
about trying to fix the problem I describe above. Any takers?
Thanks,
Doug
reply other threads:[~2009-11-07 17:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EB7984CB-FA0A-4543-9F26-03CD3AE47280@gmail.com \
--to=doug.hellmann@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=suckling@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).