From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Bug: Jumping to date in block agenda loses agenda view [7.5 (release_7.5.113.g9010a)] Date: Thu, 24 Mar 2011 23:31:06 -0400 Message-ID: <87vcz7oozp.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2xk8-0007Cj-Gd for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 23:31:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2xk4-0008TB-EU for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 23:31:17 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:14813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2xk4-0008Sh-C9 for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 23:31:16 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q2xjx-000LTt-1L for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 03:31:09 +0000 Received: from localhost.localdomain (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2P3V6TE031278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 24 Mar 2011 23:31:07 -0400 Received: from localhost.localdomain (gollum [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id p2P3V6Zn002788 for ; Thu, 24 Mar 2011 23:31:06 -0400 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'm finally getting around to trying block agendas and I've replaced most of my custom agenda commands with a single block view. Below is a simplified block agenda view which demonstrates the problem. I can move forwards and backwards one day at a time with 'f' and 'b' and it works great. If however I want to jump to a specific date the block view is lost and it reverts back to the regular calendar agenda view. Steps to reproduce: $ minimal-emacs | Step | Key | Details | |------+-----------+------------------------| | 1 | C-c a x | Load block agenda view | | 2 | j 3-1 RET | Jump to March 1st | My original agenda view looks like this after step 1, ,---- | Week-agenda (W12): | Monday 21 March 2011 W12 | Tuesday 22 March 2011 | Wednesday 23 March 2011 | Thursday 24 March 2011 | Friday 25 March 2011 | Saturday 26 March 2011 | Sunday 27 March 2011 | | ==================================================================================================== | Tasks to Refile `---- and after step 2 it looks like this: ,---- | Week-agenda (W09): | Monday 28 February 2011 W09 | Tuesday 1 March 2011 | Wednesday 2 March 2011 | Thursday 3 March 2011 | Friday 4 March 2011 | Saturday 5 March 2011 | Sunday 6 March 2011 `---- The block agenda with "Tasks to Refile" is gone. I really want to keep this block agenda view as my default agenda view. ~/bin/minimal-emacs --8<---------------cut here---------------start------------->8--- #!/bin/sh TESTEL= TESTFILE=/tmp/test.el if test -e $TESTFILE then TESTEL="-l /tmp/test.el" fi emacs -q -l ~/minimal.emacs $TESTEL $1 --8<---------------cut here---------------end--------------->8--- ~/minimal.emacs --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) (require 'org-install) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) --8<---------------cut here---------------end--------------->8--- /tmp/test.el --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands (quote (("x" "Weekly Review block agenda" ((agenda "" nil) (tags "LEVEL=1+REFILE" ((org-agenda-overriding-header "Notes and Tasks to Refile") (org-agenda-todo-ignore-with-date nil) (org-agenda-todo-ignore-deadlines nil) (org-agenda-todo-ignore-scheduled nil) (org-agenda-todo-ignore-timestamp nil) (org-agenda-overriding-header "Tasks to Refile")))))))) (setq org-agenda-files '("/tmp/publish/org-scratch.org")) --8<---------------cut here---------------end--------------->8--- /tmp/publish/org-scratch.org --8<---------------cut here---------------start------------->8--- * Tasks ** TODO Do this ** TODO Do that ** TODO Do this other thing ** DONE Did that --8<---------------cut here---------------end--------------->8--- Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Package: Org-mode version 7.5 (release_7.5.113.g9010a) -- Bernt