Re: [Orgmode] need help with lisp for export function regarding timestamps

2011-02-22 Thread Bastien
Hi Arun,

Arun Persaud apers...@lbl.gov writes:

 thanks for the answer. Played around with it and got it working now.
 Will post it in Worg under google sync after I cleaned it up a bit.

Thanks!

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] need help with lisp for export function regarding timestamps

2011-02-19 Thread Arun Persaud
Hi

 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'm afraid you need to write your own regexp...

thanks for the answer. Played around with it and got it working now.
Will post it in Worg under google sync after I cleaned it up a bit.

Arun

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] need help with lisp for export function regarding timestamps

2011-02-12 Thread Bastien
Hi Arun,

Arun Persaud apers...@lbl.gov writes:

 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'm afraid you need to write your own regexp...

Best,

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] need help with lisp for export function regarding timestamps

2011-01-27 Thread Arun Persaud
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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode