* 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
* Re: need help with lisp for export function regarding timestamps
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
0 siblings, 2 replies; 5+ messages in thread
From: Bastien @ 2011-02-12 12:38 UTC (permalink / raw)
To: Arun Persaud; +Cc: emacs-orgmode
Hi Arun,
Arun Persaud <apersaud@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: need help with lisp for export function regarding timestamps
2011-02-12 12:38 ` Bastien
@ 2011-02-13 0:06 ` Shelagh Manton
2011-02-19 20:41 ` Arun Persaud
1 sibling, 0 replies; 5+ messages in thread
From: Shelagh Manton @ 2011-02-13 0:06 UTC (permalink / raw)
To: emacs-orgmode
Having said that, emacs has a number of regexp building utilities that
can help you. An inbuilt one M-x regexp-builder or the external library
regex-tool.el, which can be found at
https://github.com/jwiegley/regex-tool.git
Cheers
Shelagh
--
email: shelagh.manton@gmail.com
BA (Asian Studies) - ANU
Grad Dip IST - UOW
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: need help with lisp for export function regarding timestamps
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
1 sibling, 1 reply; 5+ messages in thread
From: Arun Persaud @ 2011-02-19 20:41 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: need help with lisp for export function regarding timestamps
2011-02-19 20:41 ` Arun Persaud
@ 2011-02-22 11:16 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-22 11:16 UTC (permalink / raw)
To: Arun Persaud; +Cc: emacs-orgmode
Hi Arun,
Arun Persaud <apersaud@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
^ 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).