* cannot batch export agenda
@ 2013-06-01 15:37 Rainer Stengele
2013-06-01 17:12 ` Rainer Stengele
0 siblings, 1 reply; 3+ messages in thread
From: Rainer Stengele @ 2013-06-01 15:37 UTC (permalink / raw)
To: emacs-orgmode
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 nil
(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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot batch export agenda
2013-06-01 15:37 cannot batch export agenda Rainer Stengele
@ 2013-06-01 17:12 ` Rainer Stengele
2013-06-30 21:47 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Rainer Stengele @ 2013-06-01 17:12 UTC (permalink / raw)
Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot batch export agenda
2013-06-01 17:12 ` Rainer Stengele
@ 2013-06-30 21:47 ` Bastien
0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2013-06-30 21:47 UTC (permalink / raw)
To: Rainer Stengele; +Cc: emacs-orgmode
Hi Rainer,
Rainer Stengele <rainer.stengele@online.de> writes:
> 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"))'
Indeed! `org-batch-agenda' uses `org-agenda-buffer-name' which only
make sense when `org-agenda-sticky' is nil. This should be fixed now,
thanks for reporting this.
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-30 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-01 15:37 cannot batch export agenda Rainer Stengele
2013-06-01 17:12 ` Rainer Stengele
2013-06-30 21:47 ` Bastien
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).