From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chris Randle" Subject: Question and observation about org-agenda-week-view Date: Mon, 8 Sep 2008 17:39:11 +0100 Message-ID: <8E1618274C084076B065FCD9845D84F7@CUBE> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kcjlw-0004JV-0w for emacs-orgmode@gnu.org; Mon, 08 Sep 2008 12:39:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kcjlu-0004IA-F5 for emacs-orgmode@gnu.org; Mon, 08 Sep 2008 12:39:27 -0400 Received: from [199.232.76.173] (port=60022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcjlu-0004I0-A3 for emacs-orgmode@gnu.org; Mon, 08 Sep 2008 12:39:26 -0400 Received: from anchor-post-34.mail.demon.net ([194.217.242.92]:4506) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kcjlu-0003ZX-0W for emacs-orgmode@gnu.org; Mon, 08 Sep 2008 12:39:26 -0400 Received: from amlog.demon.co.uk ([80.177.106.135] helo=CUBE) by anchor-post-34.mail.demon.net with esmtp (Exim 4.67) id 1Kcjlp-000CKh-Dd for emacs-orgmode@gnu.org; Mon, 08 Sep 2008 16:39:21 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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