From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Error when trying to use --batch to export agenda ical: cl-block-nil error Date: Sat, 24 Jan 2015 09:16:09 -0500 Message-ID: <87d264jmc6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF1VV-00016e-SJ for emacs-orgmode@gnu.org; Sat, 24 Jan 2015 09:16:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YF1VV-0007Lu-5k for emacs-orgmode@gnu.org; Sat, 24 Jan 2015 09:16:13 -0500 Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:34243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF1VV-0007Lo-2A for emacs-orgmode@gnu.org; Sat, 24 Jan 2015 09:16:13 -0500 Received: by mail-yk0-f172.google.com with SMTP id 9so1118662ykp.3 for ; Sat, 24 Jan 2015 06:16:12 -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: orgmode list 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?