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: Mon, 17 Jan 2011 18:11:11 +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> <8762tnjx4h.fsf@norang.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2076687034==" Return-path: Received: from [140.186.70.92] (port=49574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pesbt-0004RR-T4 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 12:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pesbr-0004hG-A3 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 12:11:17 -0500 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:56220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pesbp-0004gc-QR for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 12:11:15 -0500 In-Reply-To: <8762tnjx4h.fsf@norang.ca> (Bernt Hansen's message of "Mon, 17 Jan 2011 11:47:10 -0500") 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: Bernt Hansen Cc: Org Mode , Noorul Islam K M , Carsten Dominik --===============2076687034== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On Mon, Jan 17 2011, Bernt Hansen wrote: > > Thanks for this patch. I think this fixes the issue I was having with > 'j' in the agenda switching from week-view back to single-day view when > org-agenda-ndays is set to 1. > > There is still a (new?) problem with jumping to today. > > Set the following variable > > (setq org-agenda-start-on-weekday 6) > > | Key Sequence | Notes | > |--------------+------------------------------------------------| > | C-c a a | Display weekly agenda | > | f | Go forward a week | > | d | Display day agenda | > | . | Go to to day - but it goes to Saturday instead | > > This should go to today and not the first day of the week. Attached is a fix for that. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-org-agenda-goto-today-not-respecting-the-current.patch Content-Transfer-Encoding: quoted-printable From=20f566a5612560f997f4760144ca850dda5c06bc5e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 17 Jan 2011 18:09:30 +0100 Subject: [PATCH] Fix org-agenda-goto-today not respecting the current span. * org-agenda.el (org-agenda-goto-today): Respect current span. Signed-off-by: Julien Danjou =2D-- lisp/org-agenda.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 0d695b5..241ed30 100644 =2D-- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6104,7 +6104,7 @@ Negative selection means regexp must not match for se= lection of an entry." (tdpos (goto-char tdpos)) ((eq org-agenda-type 'agenda) (let* ((sd (org-agenda-compute-starting-span =2D (org-today) (or org-agenda-ndays org-agenda-span))) + (org-today) (or org-agenda-current-span org-agenda-ndays org-agenda-sp= an))) (org-agenda-overriding-arguments org-agenda-last-arguments)) (setf (nth 1 org-agenda-overriding-arguments) sd) (org-agenda-redo) =2D-=20 1.7.2.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =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) iEYEARECAAYFAk00eC8ACgkQpGK1HsL+5c190QCgumIrS+f8UkoSe43HPzpkYX4J H0wAnRFqFtpeKTNYHqzpXlzVIVmETIRj =QUi0 -----END PGP SIGNATURE----- --==-=-=-- --===============2076687034== 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 --===============2076687034==--