From: torys.anderson@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: Error when trying to use --batch to export agenda ical: cl-block-nil error
Date: Sat, 24 Jan 2015 09:16:09 -0500 [thread overview]
Message-ID: <87d264jmc6.fsf@gmail.com> (raw)
When I try to export my agenda to ics (ical) from the command line, I use the following command:
emacs --batch --user $USER --eval "(progn (org-agenda-list nil nil 'year) (org-icalendar-combine-agenda-files))"
But this fails because, it says
No catch for tag: --cl-block-nil--, org-agenda-date-weekend
and it fails to produce an ics file.
However, when I'm actually executing the year-view and `org-icalendar-combine-agenda-files` in my running session of emacs, it works fine. I used to have that problem but someone here helped me solve it by adding '(require 'cl-lib) to one of my init files. But why isn't this working to prevent the cl-block error when I run the batch mode? Ideas?
next reply other threads:[~2015-01-24 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-24 14:16 Tory S. Anderson [this message]
2015-01-24 14:44 ` Error when trying to use --batch to export agenda ical: cl-block-nil error Tory S. Anderson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d264jmc6.fsf@gmail.com \
--to=torys.anderson@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.