emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: thunk2@arcor.de (Thomas Plass)
To: Wanrong Lin <wrglin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Entries with diary-sexps in "scheduled" not exported properly to calendar file (.ics file)
Date: Tue, 26 Mar 2019 22:01:01 +0100	[thread overview]
Message-ID: <23706.37645.816738.515299@AGAME7.local> (raw)
In-Reply-To: Your message of Tuesday, March 26 2019 15:20:55 (ID: <96b9e6c5-a283-bfef-d128-bfdd246b3629@gmail.com>).


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 external setup,
in particular variables such the current DATE (mon day year), itself
coming from calendar.el.  However, it's exactly such dates that you
are looking for in the first place.  I guess, in your example
(diary-float t 1 2) you might have to loop through all the days of all
months (calendar knows about those) to see whether your sexp evaluates
to something useful.  But I haven't looked at that in detail.

Thomas

  reply	other threads:[~2019-03-26 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 17:45 Bug: org-agenda-undo does not work on repeated tasks [7.9.3d (7.9.3d-dist @ /home/wlin/.emacs-lisp/org/lisp/)] Wanrong Lin
2013-04-10 12:38 ` Bastien
2019-03-26 14:23   ` Bug: Entries with diary-sexps in "scheduled" not exported properly to calendar file (.ics file) Wanrong Lin
2019-03-26 18:21     ` Thomas Plass
2019-03-26 19:20       ` Wanrong Lin
2019-03-26 21:01         ` Thomas Plass [this message]
2019-04-01 18:14           ` Wanrong Lin

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=23706.37645.816738.515299@AGAME7.local \
    --to=thunk2@arcor.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=wrglin@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).