From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: cannot batch export agenda Date: Sat, 01 Jun 2013 19:12:01 +0200 Message-ID: <51AA2B61.2000401@online.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UipLd-0003Lq-4O for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 13:12:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UipLc-0003Fm-54 for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 13:12:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:55523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UipLb-0003Fa-Rt for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 13:12:08 -0400 In-Reply-To: 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 Cc: emacs-orgmode@gnu.org Am 01.06.2013 17:37, schrieb Rainer Stengele: > Hi! > > Trying to export an agenda view by command line I get this error: > > > No buffer named *Org Agenda* > > > How can I track the reason on the comand line? > I use sticky agenda views. > > > The command is here: > emacs -batch -l ~/.emacs -eval '(org-batch-agenda "01")' > > > The agenda view config looks like this: > > ("01" "agenda - prio A,B todos - sorted prio up - today" ;; > ( > > ;; show ONGOING todos first, but only if unscheduled, skip if scheduled > (tags-todo "ONGOING" > ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) > (org-agenda-overriding-header "ONGOING todos: "))) > (agenda "todays agenda" > ( > (org-agenda-span 'day) > (org-agenda-start-with-log-mode t) > (org-agenda-start-with-clockreport-mode t) > > (org-agenda-overriding-header "Today's Agenda"))) > > (alltodo "todos Prio A+B - skip ONGOING todos" > ( > (org-agenda-skip-function (lambda nilemacs -batch -l ~/.emacs -eval ' (progn (setq org-agenda-files privat-org-agenda-files) (setq org-agenda-sticky nil) (org-batch-agenda "0w"))' > (or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\|#B\\]") > (org-agenda-skip-entry-if 'regexp ":ONGOING:") > (org-agenda-skip-entry-if 'scheduled 'deadline )))) > (org-agenda-overriding-header "All todos prio A+B - skip ONGOING todos: ") > ))) > ((org-agenda-sorting-strategy '(time-up priority-down todo-state-up))))todo-state-up)))) > > > Thanks, Rainer > I found this: (setq org-agenda-sticky nil) to be working, which might indicate a bug in the batch export when using sticky agenda views. So this does what I want: emacs -batch -l ~/.emacs -eval ' (progn (setq org-agenda-sticky nil)(org-batch-agenda "0w"))' Rainer