From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)] Date: Fri, 14 Jan 2011 12:42:41 -0500 Message-ID: <87k4i7gz5a.fsf@norang.ca> References: <87ei9a30tx.fsf@norang.ca> <87k4j2e1bb.fsf@noorul.maa.corp.collab.net> <87y67i0z5c.fsf@norang.ca> <87zkr3h3qv.fsf@norang.ca> <257A79BB-86AC-43E5-AE9D-132168283FFB@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pdnfj-0000oc-Co for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 12:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pdnfh-0002Pt-Uf for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 12:42:47 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:29536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pdnfh-0002Pn-JX for emacs-orgmode@gnu.org; Fri, 14 Jan 2011 12:42:45 -0500 In-Reply-To: <257A79BB-86AC-43E5-AE9D-132168283FFB@gmail.com> (Carsten Dominik's message of "Fri, 14 Jan 2011 18:29:43 +0100") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org, Noorul Islam K M Carsten Dominik writes: > On Jan 14, 2011, at 5:03 PM, Bernt Hansen wrote: > >> Carsten Dominik writes: >> >>> On Dec 22, 2010, at 1:29 PM, Bernt Hansen wrote: >>> >>>> Noorul Islam K M writes: >>>> >>>>> Bernt Hansen writes: >>>>> >>>>>> Hi, >>>>>> >>>>>> If you are viewing the agenda with a time span of a week (or >>>>>> anything >>>>>> larger than a day) and then use 'J' to jump to a new date the span >>>>>> changes back to day. >>>>>> >>>>> >>>>> For me, I have 'J' bound to (org-agenda-clock-goto) by default. I >>>>> think >>>>> you are talking about 'j'. >>>> >>>> Yes you are correct. 'j' jumps to a date and this is where the >>>> problem >>>> shows up for me. >>> >>> >>> Has this been fixed? Because I cannot reproduce this issue. >>> >>> - Carsten >> >> Hi Carsten, >> >> No this hasn't been fixed but it is related to some configuration I >> have. When I run with a minimal emacs I cannot reproduce it but >> when I >> run with my regular setup I can. I'll try to narrow down the cause of >> this issue over the weekend. > > Please do. Thanks > > - Carsten Hi Carsten, I think I found it. ,----[ ~/bin/minimal-emacs | #!/bin/sh | TESTEL= | TESTFILE=/tmp/test.el | if test -e $TESTFILE | then | TESTEL="-l /tmp/test.el" | fi | emacs -q -l ~/minimal.emacs $TESTEL `---- ,----[ ~/minimal.emacs ] | (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) `---- ,----[ /tmp/test.el ] | (setq org-agenda-ndays 1) `---- $ ~/bin/minimal-emacs | Keys | Description | |----------+---------------------------------| | C-c a a | Start agenda (shows today only) | | w | Show agenda for the week | | j 12 RET | Jump to the 12th of the month | And we're back to a day view again. Setting 'org-agenda-ndays' to 1 seems to be the cause of this issue. Regards, Bernt