From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] 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 19:27:16 +0100 (CET) Message-ID: <20110117182717.006CB46626@myhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54093 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Petng-0008Ra-Be for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 13:27:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Petne-0001Aj-S7 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 13:27:32 -0500 Received: from mail-gy0-f195.google.com ([209.85.160.195]:52671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Petne-00019y-PA for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 13:27:30 -0500 Received: by gyf3 with SMTP id 3so833471gyf.6 for ; Mon, 17 Jan 2011 10:27:30 -0800 (PST) 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 Patch 544 (http://patchwork.newartisans.com/patch/544/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3Csa3mxmzv4k0.fsf%40cigue.easter-eggs.fr%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] 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 22:11:11 -0000 > From: Julien Danjou > X-Patchwork-Id: 544 > Message-Id: > To: Bernt Hansen > Cc: Org Mode , Noorul Islam K M , > Carsten Dominik > > 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. > > > >From f566a5612560f997f4760144ca850dda5c06bc5e 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 > --- > 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 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -6104,7 +6104,7 @@ Negative selection means regexp must not match for selection of an entry." > (tdpos (goto-char tdpos)) > ((eq org-agenda-type 'agenda) > (let* ((sd (org-agenda-compute-starting-span > - (org-today) (or org-agenda-ndays org-agenda-span))) > + (org-today) (or org-agenda-current-span org-agenda-ndays org-agenda-span))) > (org-agenda-overriding-arguments org-agenda-last-arguments)) > (setf (nth 1 org-agenda-overriding-arguments) sd) > (org-agenda-redo) > -- > 1.7.2.3 > >