From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Persaud Subject: need help with lisp for export function regarding timestamps Date: Thu, 27 Jan 2011 18:51:28 -0800 Message-ID: <4D422F30.7030805@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Piif0-0000V8-DH for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 02:22:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Piiey-0006kZ-N6 for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 02:22:22 -0500 Received: from ironport4.lbl.gov ([128.3.41.45]:5507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Piiex-0006j7-Kc for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 02:22:20 -0500 Received: by mail-yi0-f52.google.com with SMTP id 1so871969yic.39 for ; Thu, 27 Jan 2011 18:51:31 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi trying to get the export to ics working using org-icalendar-verify-function and org-export-icalendar-combine-agenda-files At the moment I'm using the following as a verify function: (defun mycal-export () (setq mycategory (org-get-category)) (setq myrepeat (org-get-repeat)) (and (not (member mycategory org-export-exclude-category)) (eval myrepeat)))) which excludes categories listed in org-export-exclude-category and also only export repeated items at the moment. I would like to add items that have a start and an end date, that is something like SCHEDULED: -- but I can't figure out how to check for these? Do I need to write my own reg-exp for this and test the whole entry or is there some org internal function for this? I only found org-get-scheduled-time, but that does only seem to return the first timestamp? Any ideas on how to accomplish this? Thanks Arun