emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Arun Persaud <apersaud@lbl.gov>
To: emacs-orgmode@gnu.org
Subject: need help with lisp for export function regarding timestamps
Date: Thu, 27 Jan 2011 18:51:28 -0800	[thread overview]
Message-ID: <4D422F30.7030805@lbl.gov> (raw)

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

             reply	other threads:[~2011-01-28  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28  2:51 Arun Persaud [this message]
2011-02-12 12:38 ` need help with lisp for export function regarding timestamps Bastien
2011-02-13  0:06   ` Shelagh Manton
2011-02-19 20:41   ` Arun Persaud
2011-02-22 11:16     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D422F30.7030805@lbl.gov \
    --to=apersaud@lbl.gov \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).