From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou 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:18:26 +0100 Message-ID: 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: multipart/mixed; boundary="===============2054799438==" Return-path: Received: from [140.186.70.92] (port=40464 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Piq5p-0006fc-Tt for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:18:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Piq5n-0000s6-CV for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:18:32 -0500 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:47508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Piq5m-0000qJ-4g for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 10:18:31 -0500 In-Reply-To: (Julien Danjou's message of "Mon, 17 Jan 2011 16:08:04 +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 --===============2054799438== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Jan 17 2011, Julien Danjou wrote: This patch has not been installed, and it should be since the problem is still here. > I've followed but not sure I understood what the bug is. But from my > various tries, I found a bug: when pressing 'j', the current span is > discarded. > > Attached is a patch that should fix that, even for future use of > `org-agenda-list' with the span unspecified. :) > > > 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-a= genda-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)) > --=20 > 1.7.2.3 =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJNQt5CAAoJEGEbqVCLeKXCxZQP/Rv+AqxRlIn6DwcTehk7IXyr EBKS19TwIdQtytxrwJmskYuXk+wEAKkcNgetSacM8Lm4mvhS7AdvNxDjMsn+lvUI /SQi9luplXF/jffZG5/xnqdiG/UUKFRcH2kUmoPS562TZVaexswXhYsFlyMxX/hb FBMLPA+7xIWIFic2K39a7ZaLlg3vWxN4fYhc3uaYSB7/KvG2hm8Ckv0Zi2RkAMGu uvx3jeYzGkVQ/jrofrWdsbFIOAbpnH7syaCb+2gvJSWEDntAqRfwAUg8NQwCLxA5 zfr6LA+OLt2xiKLLp66Y9DeSC9IXq8s79PivcQ8tUFPqapzA+zZ0rIop3AIyB3sB nhVs95OChR0KvsWjpa+F5BIlMfvZOojm+fDtFqwKakQkcx9MUgPgKM9kVyJE2hmv 9jpU3gDbcAyYHsUsZv7aVtQyQG0ncHq1iBf+eK6wqfg8amZz4pEtGZ36Nmn5oOEi eOLaRWIeCS48f73lJiQH3e7UjPZzQa2ZQgEFw/Tn2Iw6Fklt3ZsMH1C9QPQJiu+Z LrSTkpDVnQxixRwGy/eiLmgvlIcWIkxXgFCrEH7FNhPO3gvHazxSGHeU98UwLWWg 3owXTHc3tOzby6rIaWM4MnZ9JLJ+pQpg+CUJHcDol2xLZUGvNHDiRAATxrUMJMkR aDEP7r5d/3WeBAsWZCwV =qBeA -----END PGP SIGNATURE----- --=-=-=-- --===============2054799438== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2054799438==--