emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Stengele <rainer.stengele@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: cannot batch export agenda
Date: Sat, 01 Jun 2013 19:12:01 +0200	[thread overview]
Message-ID: <51AA2B61.2000401@online.de> (raw)
In-Reply-To: <kod4f5$fpn$1@ger.gmane.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

  reply	other threads:[~2013-06-01 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-01 15:37 cannot batch export agenda Rainer Stengele
2013-06-01 17:12 ` Rainer Stengele [this message]
2013-06-30 21:47   ` 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=51AA2B61.2000401@online.de \
    --to=rainer.stengele@online.de \
    --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).