From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: translating event sexps to org for org-caldav Date: Mon, 21 Nov 2016 23:38:03 +0100 Message-ID: <8737ikihmc.fsf@nicolasgoaziou.fr> References: <87shqn9jky.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8xE1-0002Vf-Vh for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:38:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8xDx-0000Si-4Q for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:38:10 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38378) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8xDw-0000Rr-Ue for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:38:05 -0500 In-Reply-To: <87shqn9jky.fsf@gmail.com> (Myles English's message of "Sat, 19 Nov 2016 22:43:41 +0000") 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: Myles English Cc: org mode Hello, Myles English writes: > From the org-caldav github page[fn:2] : > > """However, sexp-entries are insanely flexible, and there are limits as > to what the icalendar exporter will handle. For example, this here > > ** Regular event > <%%(memq (calendar-day-of-week date) '(1 3 5))> > > will not be exported at all.""" > > However, org-agenda uses these sexps to make entries in the agenda. > > Would it be possible to reuse something from org-agenda to write these > entries as org items into a file that could be uploaded using > org-caldav? Maybe org-get-entries-from-diary? Is there a huge problem > with this that I haven't noticed? This is tricky. Agenda has a notion of time span, "ox-icalendar" hasn't. So you would have to test if sexp matches for every day between some arbitrary chosen dates. "ox-icalendar.el" relies on "icalendar.el" library, bundled with Emacs, for converting diary entries. Alas, it doesn't handle sexp entries either. > [fn:1] I think I started using sexps just because org-mode can't do > e.g. "every Monday, *between these two dates*" I use `org-class' for that. Regards, -- Nicolas Goaziou