From mboxrd@z Thu Jan 1 00:00:00 1970 From: thunk2@arcor.de (Thomas Plass) 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 Message-ID: <23706.37645.816738.515299@AGAME7.local> References: <51338C37.9020604@gmail.com> <87li8qfrrv.fsf@bzg.ath.cx> <23706.28088.983119.50420@AGAME7.local> <96b9e6c5-a283-bfef-d128-bfdd246b3629@gmail.com> Reply-To: Thomas Plass Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8tCB-0006AG-KI for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 17:01:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8tCA-00036v-0p for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 17:01:19 -0400 Received: from vsmx009.vodafonemail.xion.oxcs.net ([153.92.174.87]:54794) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8tC8-0002zV-UP for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 17:01:17 -0400 In-Reply-To: Your message of Tuesday, March 26 2019 15:20:55 (ID: <96b9e6c5-a283-bfef-d128-bfdd246b3629@gmail.com>). List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Wanrong Lin Cc: emacs-orgmode@gnu.org 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