From: Boyd Kelly <bkelly@coastsystems.net>
To: emacs-orgmode@gnu.org
Subject: (setq org-icalendar-store-UID t) not working with --batch
Date: Fri, 28 Feb 2014 12:45:22 -0800 [thread overview]
Message-ID: <CAN10=3pV4pUpmbxr-J40nKmNzVBFEUn2n536j2ikdzscFYGOrw@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2014-02-28 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 20:45 Boyd Kelly [this message]
2014-03-21 8:28 ` (setq org-icalendar-store-UID t) not working with --batch Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN10=3pV4pUpmbxr-J40nKmNzVBFEUn2n536j2ikdzscFYGOrw@mail.gmail.com' \
--to=bkelly@coastsystems.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).