emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (setq org-icalendar-store-UID t) not working with --batch
@ 2014-02-28 20:45 Boyd Kelly
  2014-03-21  8:28 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Boyd Kelly @ 2014-02-28 20:45 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4470 bytes --]

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

* Re: (setq org-icalendar-store-UID t) not working with --batch
  2014-02-28 20:45 (setq org-icalendar-store-UID t) not working with --batch Boyd Kelly
@ 2014-03-21  8:28 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-03-21  8:28 UTC (permalink / raw)
  To: Boyd Kelly; +Cc: emacs-orgmode

Hi,

Boyd Kelly <bkelly@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

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

end of thread, other threads:[~2014-03-21  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-28 20:45 (setq org-icalendar-store-UID t) not working with --batch Boyd Kelly
2014-03-21  8:28 ` 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).