From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Refreshing custom agenda view ignores daily setting Date: Thu, 10 Sep 2009 22:40:51 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlqRz-0006cL-2F for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 16:41:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlqRu-0006a4-ID for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 16:41:02 -0400 Received: from [199.232.76.173] (port=56217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlqRu-0006Zv-Ec for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 16:40:58 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:61141) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlqRt-0000PF-CY for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 16:40:58 -0400 Received: by ewy7 with SMTP id 7so480709ewy.31 for ; Thu, 10 Sep 2009 13:40:55 -0700 (PDT) In-Reply-To: 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: PT Cc: emacs-orgmode@gnu.org On Sep 8, 2009, at 8:58 AM, PT wrote: > If I open the builtin agenda view with a M-1 prefix I see the > entries for the current day. When I press "g" then the view is > refreshed properly. > > If I define a custom agenda > > > (setq org-agenda-custom-commands > '(("h" "Agenda and todo" > ((agenda "") > (alltodo ""))))) > > > and invoke it with a M-1 prefix then it shows my daily agenda > entries and the global todo items under it. If I press "g" here then > the view is refreshed, but the agenda view forgets I invoked it with > a prefix and shows a weekly agenda above the todo list, instead of a > daily one. > Hi PT, yes, the prefix argument is not preserved in his case. You can add a setting for org-agenda-ndays to the option settings for the agenda command (untested): (setq org-agenda-custom-commands '(("h" "Agenda and todo" ((agenda "" ((org-agenda-ndays 1))) (alltodo ""))))) HTH - Carsten