From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boyd Kelly Subject: (setq org-icalendar-store-UID t) not working with --batch Date: Fri, 28 Feb 2014 12:45:22 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b66f0bd4afe4504f37d84ca Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJUJG-00069S-K0 for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:45:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJUJA-0005UX-0w for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:45:30 -0500 Received: from mail-ob0-f176.google.com ([209.85.214.176]:45853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJUJ9-0005U8-RR for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:45:23 -0500 Received: by mail-ob0-f176.google.com with SMTP id wp18so2815525obc.35 for ; Fri, 28 Feb 2014 12:45:22 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b66f0bd4afe4504f37d84ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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) ) =E2=80=8BWith the same result. If I run M-x org-mycal-export, I get the UI= D entered to my agenda file. But if I run emacs --batch -l ~/.emacs =E2=80= =8B-eval '(org-mycal-export)', it doesn't insert the UID. Any suggestions? Best, Boyd --047d7b66f0bd4afe4504f37d84ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Total newbie here.... =C2=A0I want to export my agenda stuff to ical and po= tentially sync with google. =C2=A0I have this in my .emacs:
;; found= on the net to include todo itmes with iCalendar export
(setq org-icale= ndar-include-todo t)
(setq or= g-icalendar-store-UID t)

(setq or= g-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo)= )
(setq org-icalendar-use-deadline '(todo-due event-if-todo event-i= f-not-todo))
(setq or= g-combined-agenda-icalendar-file "~/combined.ics")

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

But when I run:=C2=A0=C2=A0emacs -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 ()
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (setq org-icalendar-include-todo t)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq org-icalendar-store-= UID t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-exp= ort-icalendar-all-agenda-files)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )

=E2=80=8BWith the same result. =C2=A0If I run M-x org-mycal-export, I get t= he UID entered to my agenda file. =C2=A0But if I run=C2=A0emacs --batch -l = ~/.emacs =E2=80=8B-eval '(org-mycal-export)', it doesn't insert= the UID.

Any suggestions?

Best,

Boyd
--047d7b66f0bd4afe4504f37d84ca--