From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Timestamps in properties not exported by icalendar exporter Date: Sat, 22 Feb 2014 10:44:54 +0100 Message-ID: <87lhx34h2h.fsf@gmail.com> References: <87bny0ia7d.fsf@engster.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH98P-0002Fb-FM for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 04:44:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH98J-00037Q-TE for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 04:44:37 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:48300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH98J-00037K-Li for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 04:44:31 -0500 Received: by mail-we0-f171.google.com with SMTP id u56so3284464wes.16 for ; Sat, 22 Feb 2014 01:44:30 -0800 (PST) Received: from selenimh ([91.224.148.150]) by mx.google.com with ESMTPSA id u6sm3304490wif.6.2014.02.22.01.44.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Feb 2014 01:44:30 -0800 (PST) In-Reply-To: <87bny0ia7d.fsf@engster.org> (David Engster's message of "Fri, 21 Feb 2014 19:37:10 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, David Engster writes: > I have the problem that a certain kind Org entries is not exported by > the icalendar exporter, namely those created by the gnus-icalendar > package. > > This package creates Org entries from calendar invites in the following > way (I've omitted some of the properties, but you get the idea); > > ** Some appointment (location) > :PROPERTIES: > :ICAL_EVENT: t > :ID: 040000008200E00074C5B7101A82E00800 > :DT: <2013-12-09 Mon 13:00-13:30> > :END: > > Body text > > > These entries show up in the agenda just fine, but the icalendar > exporter does not export it because the timestamp is in the properties > (the gnus-icalendar package puts it there so that you can easily change > it if the organizer decides to change the event and sends a change > request). > > The exporter could of course simply take the first timestamp it finds in > the properties, but it could be the wrong one; for instance, there could > be a LOGBOOK timestamp before the one in DT. Hence I think it would be > nice if you could tell the exporter which property to use as timestamp > during export. Can't you just walk the buffer and turn such properties into plain time-stamps (or scheduled, deadline...), in a hook? Regards, -- Nicolas Goaziou