Re: [O] (setq org-icalendar-store-UID t) not working with --batch

2014-03-21 Thread Bastien
Hi,

Boyd Kelly bke...@coastsystems.net writes:

 But when I run:  emacs -l ~/.emacs -eval '
 (org-export-icalendar-all-agenda-files)' --batch
   ^

This function does not exist in the current distribution of Org,
and the problem does not exist in this distribution AFAIK.

If you can, please update Org.

Thanks,

-- 
 Bastien



[O] (setq org-icalendar-store-UID t) not working with --batch

2014-02-28 Thread Boyd Kelly
Hi,

Total newbie here  I want to export my agenda stuff to ical and
potentially sync with google.  I have this in my .emacs:

;; found on the net to include todo itmes with iCalendar export
(setq org-icalendar-include-todo t)
(setq org-icalendar-store-UID t)

;;http://lists.gnu.org/archive/html/emacs-orgmode/2009-07/msg00839.html
(setq org-icalendar-use-scheduled '(todo-start event-if-todo
event-if-not-todo))
(setq org-icalendar-use-deadline '(todo-due event-if-todo
event-if-not-todo))
(setq org-combined-agenda-icalendar-file ~/combined.ics)

When I run C-c C-a I to export all my agenda files, all works fine.  I get
my todo's also as events, and the UID is added as a property to the .org
file.

But when I run:  emacs -l ~/.emacs -eval
'(org-export-icalendar-all-agenda-files)' --batch

It doesn't store the UID.

I tried my very first attempt at something lisp, and did this:

(defun org-mycal-export ()
(interactive)
(setq org-icalendar-include-todo t)
(setq org-icalendar-store-UID t)
(org-export-icalendar-all-agenda-files)
)

​With the same result.  If I run M-x org-mycal-export, I get the UID
entered to my agenda file.  But if I run emacs --batch -l ~/.emacs ​-eval
'(org-mycal-export)', it doesn't insert the UID.

Any suggestions?

Best,

Boyd