I just wrote a function to do it, and hope it can help other people with
similar needs:
;; example: (dates-from-diary-sexp "2019-04-01" "2019-09-01"
"(diary-float t 1 2)")
;; => ((8 12 2019) (7 8 2019) (6 10 2019) (5 13 2019) (4 8 2019))
(defun dates-from-diary-sexp (start end diary-sexp)
"G
Wanrong Lin wrote at 15:20 on March 26, 2019:
:
: As a work around, do you know if there is a way
: to generate a series of dates / org entries from a diary-sexps? Thanks.
Evaluating those sexp is done in diary-lib. But it's no use simply
supplying arguments to functions there as they require
Thanks for the explanation. My limited debugging showed the data may not
even be passed from org to icalendar.el ("scheduled: nil" in the entry).
But from what you said it won't work anyway regardless.
This is a bit of bummer. As a work around, do you know if there is a way
to generate a se
Hi,
Wanrong Lin wrote at 10:23 on March 26, 2019:
:
: * TODO Do this on the second Monday every month
: SCHEDULED: <%%(diary-float t 1 2) 19:00-20:30>
:
: M-x org-icalendar-export-to-ics
Org agenda has its own processing of sexps, so its views are correct.
The exporter, however, uses icalenda
Org-mode version 9.2.2, Emacs 26.1, Windows 10
To reproduce:
Create a file "Test.org", with only one entry:
* TODO Do this on the second Monday every month
SCHEDULED: <%%(diary-float t 1 2) 19:00-20:30>
:PROPERTIE