* Question and observation about org-agenda-week-view
@ 2008-09-08 16:39 Chris Randle
2008-09-08 16:58 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Chris Randle @ 2008-09-08 16:39 UTC (permalink / raw)
To: emacs-orgmode
Hi
I've written an emacs function which uses:
(org-agenda nil "e")
To export my agenda to HTML. I'd like to make sure that the output
always shows a weekly view, so I tried preceeding that line with
(org-agenda-week-view)
But evaluating the function with the week-view line gives "Wrong type
argument: number-or-marker-p, nil". Interactively, I see that you have
to call the (org-agenda-xxxxx-view) functions from within the *Org
Agenda* buffer. How can I force the org-agenda function, called
programmatically, to output a week view?
Also, I think the help text for the org-agenda-week-view function has a
typo, as it says "Switch to *daily* view for agenda" (my emphasis).
--
Chris Randle
Windows XP SP3 - GNU Emacs 22.1.1 - Org-mode 6.06b
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question and observation about org-agenda-week-view
2008-09-08 16:39 Question and observation about org-agenda-week-view Chris Randle
@ 2008-09-08 16:58 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-09-08 16:58 UTC (permalink / raw)
To: Chris Randle; +Cc: emacs-orgmode
On Sep 8, 2008, at 6:39 PM, Chris Randle wrote:
> Hi
>
> I've written an emacs function which uses:
>
> (org-agenda nil "e")
>
> To export my agenda to HTML. I'd like to make sure that the output
> always shows a weekly view, so I tried preceeding that line with
>
> (org-agenda-week-view)
Hi Chris,
this should do the trick
(let ((org-agenda-ndays 7))
(org-agenda nil "e"))
HTH
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-08 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 16:39 Question and observation about org-agenda-week-view Chris Randle
2008-09-08 16:58 ` Carsten Dominik
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).