emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* need help with lisp for export function regarding timestamps
@ 2011-01-28  2:51 Arun Persaud
  2011-02-12 12:38 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Persaud @ 2011-01-28  2:51 UTC (permalink / raw)
  To: emacs-orgmode

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: <date1 day1 time1>--<date2 day2 time2>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-22 11:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28  2:51 need help with lisp for export function regarding timestamps Arun Persaud
2011-02-12 12:38 ` Bastien
2011-02-13  0:06   ` Shelagh Manton
2011-02-19 20:41   ` Arun Persaud
2011-02-22 11:16     ` Bastien

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).