emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: "Sébastien Vauban"
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: Bug: Jumping to date in custom agenda looses starting day of week
Date: Wed, 30 Mar 2011 13:47:12 -0400	[thread overview]
Message-ID: <87oc4sbivz.fsf@fastmail.fm> (raw)
In-Reply-To: <80wrjna88s.fsf@somewhere.org> ("Sébastien Vauban"'s message of "Fri, 25 Mar 2011 09:56:35 +0100")



Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
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. 

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.). 

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

      reply	other threads:[~2011-03-30 19:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25  3:31 Bug: Jumping to date in block agenda loses agenda view [7.5 (release_7.5.113.g9010a)] Bernt Hansen
2011-03-25  8:56 ` Bug: Jumping to date in custom agenda looses starting day of week Sébastien Vauban
2011-03-30 17:47   ` Matt Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oc4sbivz.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).