From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Bug: Jumping to date in custom agenda looses starting day of week Date: Wed, 30 Mar 2011 13:47:12 -0400 Message-ID: <87oc4sbivz.fsf@fastmail.fm> References: <87vcz7oozp.fsf@norang.ca> <80wrjna88s.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q513t-0003Ik-JR for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 15:28:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q50ix-0006pK-OQ for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 15:06:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:36719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q50ix-0006og-EP for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 15:06:35 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q50iu-000425-U0 for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 21:06:32 +0200 In-Reply-To: <80wrjna88s.fsf@somewhere.org> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 25 Mar 2011 09:56:35 +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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org S=C3=A9bastien Vauban writes: > Hi Bernt, > > Bernt Hansen wrote: >> I can move forwards and backwards one day at a time with 'f' and 'b' and= it >> works great. If however I want to jump to a specific date the block view= is >> lost and it reverts back to the regular calendar agenda view. > > In the same spirit, I would add another point: if you have a view with > starting day (of the week) on Monday: > > ("C" "Weekly appointments" > agenda "" > ((org-agenda-ndays 7) > (org-agenda-start-on-weekday 1) > (org-agenda-time-grid nil) > (org-agenda-prefix-format " %12:t ") > (org-agenda-include-all-todo nil) > (org-agenda-repeating-timestamp-show-all t) > (org-agenda-skip-function > '(org-agenda-skip-entry-if 'deadline 'scheduled)))) > [An aside: Setting org-agenda-entry-types to '(:timestamp :sexp) is faster than using an org-agenda-skip-function here.] > and jump to a Thursday, then the new 7-days view is beginning on Thursday > (which is my global setting), instead of keeping the Monday. I can confirm this.=20 Moreover, I find that my custom settings for org-agenda-entry-types are ignored and org-agenda-span are discarded when jumping to a date. The following custom command displays a weekly calendar. --8<---------------cut here---------------start------------->8--- ("cc" "Calendar" agenda "" ((org-agenda-span 'week) (org-agenda-start-on-weekday 0) ; start on Sunday (org-agenda-time-grid nil) (org-agenda-prefix-format " %-12:t ") (org-deadline-warning-days 0) (org-agenda-include-all-todo nil) (org-agenda-repeating-timestamp-show-all t) (org-agenda-filter-preset '("-nocal1")) (org-agenda-hide-tags-regexp ".*") )) --8<---------------cut here---------------end--------------->8--- My default org-agenda-span is 'day. If I jump to Thursday, I get a standard one-day agenda view, which includes all the org-agenda-entry-types (deadline, schedule, etc.).=20 If I then refresh the agenda view, the deadline and schedule items disappear, but the agenda remains limited to the default span (day) instead of the custom span (week). > What I would find logical is to keep this setting active for the jump. A quick check of the git history reveals that org-agenda-goto-date has *always* been rather basic. It simply calls org-agenda-list for the date in question. Unlike org-agenda-goto-today, it pays no attention to the local settings for the current agenda. Best, Matt