From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)] Date: Fri, 28 Jan 2011 16:43:29 +0100 Message-ID: <83lj25c9um.fsf@yahoo.it> 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> <87k4i7gz5a.fsf@norang.ca> <8739ord2r4.fsf@norang.ca> <97009C4F-F6B7-4C54-BF3C-B3DE5EF15547@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=38704 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiqTz-0000mm-97 for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:43:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiqTx-0007WX-Ts for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:43:31 -0500 Received: from nm8-vm0.bullet.mail.ukl.yahoo.com ([217.146.183.238]:48943) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PiqTx-0007WH-FI for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:43:29 -0500 In-Reply-To: (Julien Danjou's message of "Fri, 28 Jan 2011 16:18:26 +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: Bernt Hansen , Org Mode , Noorul Islam K M , Bastien Julien Danjou writes: > On Mon, Jan 17 2011, Julien Danjou wrote: > > This patch has not been installed, and it should be since the problem is > still here. > It is patch number 543: http://patchwork.newartisans.com/patch/543/ and it has been rejected (see: http://patchwork.newartisans.com/project/org-mode/list/?state=4&archive=true ) I suppose that Bastien made a mistake, since there were two patches with the same "subject" one after the other, and the newest patch has been accepted. Cheers, Giovanni >> From 9dd2fe6650b858a4083ebc083bb8d10a0d6ac7f2 Mon Sep 17 00:00:00 2001 >> From: Julien Danjou >> Date: Mon, 17 Jan 2011 16:05:28 +0100 >> Subject: [PATCH] Fix agenda span on date jump >> >> * org-agenda.el (org-agenda-list): Use org-agenda-current-span as a >> possible default span if it is set. >> >> Signed-off-by: Julien Danjou >> --- >> lisp/org-agenda.el | 5 ++++- >> 1 files changed, 4 insertions(+), 1 deletions(-) >> >> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el >> index 0cd620c..0d695b5 100644 >> --- a/lisp/org-agenda.el >> +++ b/lisp/org-agenda.el >> @@ -3450,7 +3450,10 @@ given in `org-agenda-start-on-weekday'." >> (setq org-agenda-last-arguments (list include-all start-day span)) >> (org-compile-prefix-format 'agenda) >> (org-set-sorting-strategy 'agenda) >> - (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-span))) >> + (let* ((span (org-agenda-ndays-to-span (or span >> + org-agenda-current-span >> + org-agenda-ndays >> + org-agenda-span))) >> (today (org-today)) >> (sd (or start-day today)) >> (ndays (org-agenda-span-to-ndays span sd)) >> -- >> 1.7.2.3