* Bug with org-agenda-span & org-agenda-start-day
@ 2012-08-24 3:02 Charles Philip Chan
2012-08-24 11:50 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-24 3:02 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
Hello:
I am trying to setup a block in one of my Agenda views for coming up
events in the next 7 days. I have org-agenda-start-day set to
"+1d". However, it is not working- the block keeps starting on Sunday of
the current week. If I set org-agenda-start-day to anything but "7", it
works.
I am using the current git version of org-mode (7.8.11).
Thanks.
Charles
--
"Open Standards, Open Documents, and Open Source"
-- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-24 3:02 Bug with org-agenda-span & org-agenda-start-day Charles Philip Chan
@ 2012-08-24 11:50 ` Bastien
2012-08-24 22:32 ` Charles Philip Chan
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2012-08-24 11:50 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> I am trying to setup a block in one of my Agenda views for coming up
> events in the next 7 days. I have org-agenda-start-day set to
> "+1d". However, it is not working- the block keeps starting on Sunday of
> the current week. If I set org-agenda-start-day to anything but "7", it
> works.
>
> I am using the current git version of org-mode (7.8.11).
I'm not sure to understand what is wrong and how org-agenda-span is
involved in the problem.
Can you explain a bit more?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-24 11:50 ` Bastien
@ 2012-08-24 22:32 ` Charles Philip Chan
2012-08-27 16:28 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-24 22:32 UTC (permalink / raw
To: Bastien; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> I'm not sure to understand what is wrong and how org-agenda-span is
> involved in the problem.
OK, I will explain in more detail. I have set org-agenda-start-day to
"+1d" in the block. If I set "org-agenda-span" to anything but "7" (for
example "6" or "8"), the resulting agenda view is correct and the start
day is tomorrow (and span the number of days I specified). However, if I
set org-agenda-span to "7", the resulting agenda view does not start
tomorrow, but the Sunday of the current week.
Cheers,
Charles
--
"I once witnessed a long-winded, month-long flamewar over the use of
mice vs. trackballs...It was very silly."
(By Matt Welsh)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-24 22:32 ` Charles Philip Chan
@ 2012-08-27 16:28 ` Bastien
2012-08-27 22:04 ` Charles Philip Chan
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2012-08-27 16:28 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> Bastien <bzg@altern.org> writes:
>
> Hi Bastien:
>
>> I'm not sure to understand what is wrong and how org-agenda-span is
>> involved in the problem.
>
> OK, I will explain in more detail. I have set org-agenda-start-day to
> "+1d" in the block. If I set "org-agenda-span" to anything but "7" (for
> example "6" or "8"), the resulting agenda view is correct and the start
> day is tomorrow (and span the number of days I specified). However, if I
> set org-agenda-span to "7", the resulting agenda view does not start
> tomorrow, but the Sunday of the current week.
You need to add (org-agenda-start-on-weekday nil) to the list of
properties for this agenda view.
See the docstring of `org-agenda-start-on-weekday' for details.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-27 16:28 ` Bastien
@ 2012-08-27 22:04 ` Charles Philip Chan
2012-08-28 1:00 ` Charles Philip Chan
0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-27 22:04 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> You need to add (org-agenda-start-on-weekday nil) to the list of
> properties for this agenda view.
>
> See the docstring of `org-agenda-start-on-weekday' for details.
Ah, OK. Thanks.
Cheers,
Charles
--
"Even more amazing was the realization that God has Internet access. I
wonder if He has a full newsfeed?"
(By Matt Welsh)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-27 22:04 ` Charles Philip Chan
@ 2012-08-28 1:00 ` Charles Philip Chan
2012-08-30 5:10 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-28 1:00 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 975 bytes --]
Charles Philip Chan <cpchan@bell.net> writes:
Hi Bastien:
> Bastien <bzg@altern.org> writes:
>
> Hi Bastien:
>
>> You need to add (org-agenda-start-on-weekday nil) to the list of
>> properties for this agenda view.
>>
>> See the docstring of `org-agenda-start-on-weekday' for details.
>
> Ah, OK. Thanks.
I spoke too soon. I tried it out and this is not working.
For example today is Monday, Aug. 27. If I set the agenda span to
anything but "7" or "week", it works- the start date is "Aug. 28" (I
even tried "month" and "year"). This works even if
"org-agenda-start-on-weekday" is non-nil (my
"org-agenda-start-on-weekday" is set globally to "0"). However, if I set
it to either "7" or "week", the start day in the agenda is Sunday,
Aug. 26. This is really strange.
Cheers,
Charles
--
Sigh. I like to think it's just the Linux people who want to be on
the "leading edge" so bad they walk right off the precipice.
(Craig E. Groeschel)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-28 1:00 ` Charles Philip Chan
@ 2012-08-30 5:10 ` Bastien
2012-08-30 5:36 ` Charles Philip Chan
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2012-08-30 5:10 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> I spoke too soon. I tried it out and this is not working.
>
> For example today is Monday, Aug. 27. If I set the agenda span to
> anything but "7" or "week", it works- the start date is "Aug. 28" (I
> even tried "month" and "year"). This works even if
> "org-agenda-start-on-weekday" is non-nil (my
> "org-agenda-start-on-weekday" is set globally to "0"). However, if I set
> it to either "7" or "week", the start day in the agenda is Sunday,
> Aug. 26. This is really strange.
This have been fixed with the other agenda fixes. Please let me
know if this is not the case for you.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 5:10 ` Bastien
@ 2012-08-30 5:36 ` Charles Philip Chan
2012-08-30 6:18 ` Bastien
0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-30 5:36 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> This have been fixed with the other agenda fixes. Please let me know
> if this is not the case for you.
Sorry Bastien. Setting it to "7" or "week" is still not working. This is
really strange, any other number works.
Cheers,
Charles
--
Linux! Guerrilla UNIX Development Venimus, Vidimus, Dolavimus.
(By mah@ka4ybr.com, Mark A. Horton KA4YBR)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 5:36 ` Charles Philip Chan
@ 2012-08-30 6:18 ` Bastien
2012-08-30 6:43 ` Charles Philip Chan
0 siblings, 1 reply; 14+ messages in thread
From: Bastien @ 2012-08-30 6:18 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> Bastien <bzg@altern.org> writes:
>
> Hi Bastien:
>
>> This have been fixed with the other agenda fixes. Please let me know
>> if this is not the case for you.
>
> Sorry Bastien. Setting it to "7" or "week" is still not working. This is
> really strange, any other number works.
Remember you need to add (org-agenda-start-on-weekday nil) to the list
of properties for this agenda view.
I suspect the user naturally expects `org-agenda-start-day' to override
`org-agenda-start-on-weekday' -- and since `org-agenda-start-on-weekday'
is often set globally, maybe that's the correct expectation.
still, being able to set (setq org-agenda-start-day "+10d") and have the
whole week displayed starting with `org-agenda-start-on-weekday' is
useful.
What do you think?
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 6:18 ` Bastien
@ 2012-08-30 6:43 ` Charles Philip Chan
2012-08-30 7:00 ` Bastien
2012-08-30 8:21 ` Bastien
0 siblings, 2 replies; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-30 6:43 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> Remember you need to add (org-agenda-start-on-weekday nil) to the list
> of properties for this agenda view.
I did that already and it didn't work.
Charles
--
"The world is beating a path to our door"
-- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 6:43 ` Charles Philip Chan
@ 2012-08-30 7:00 ` Bastien
2012-08-31 1:14 ` Charles Philip Chan
[not found] ` <87harjyian.fsf@karnak.MagnumOpus.khem>
2012-08-30 8:21 ` Bastien
1 sibling, 2 replies; 14+ messages in thread
From: Bastien @ 2012-08-30 7:00 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> I did that already and it didn't work.
Can you share a reproducible recipe with latest Org?
Both a simple .org file and a simple .el config file
with the minimal setup would help a lot, I don't have
the problem with my tests.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 6:43 ` Charles Philip Chan
2012-08-30 7:00 ` Bastien
@ 2012-08-30 8:21 ` Bastien
1 sibling, 0 replies; 14+ messages in thread
From: Bastien @ 2012-08-30 8:21 UTC (permalink / raw
To: Charles Philip Chan; +Cc: Org-mode
Hi Charles,
Charles Philip Chan <cpchan@bell.net> writes:
> Bastien <bzg@altern.org> writes:
>
> Hi Bastien:
>
>> Remember you need to add (org-agenda-start-on-weekday nil) to the list
>> of properties for this agenda view.
>
> I did that already and it didn't work.
To be clear, here is the agenda command I tested:
(setq org-agenda-custom-commands
'(("R" "Testing"
((agenda
"Week starting tomorrow"
((org-agenda-start-on-weekday nil) ;;; here
(org-agenda-start-day "+1d")
(org-agenda-span 7)))
(agenda
"Week starting on monday"
((org-agenda-start-on-weekday 1) ;;; here
(org-agenda-start-day "+1d")
(org-agenda-span 7)))))))
See where I changed the value for (org-agenda-start-on-weekday 1).
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
2012-08-30 7:00 ` Bastien
@ 2012-08-31 1:14 ` Charles Philip Chan
[not found] ` <87harjyian.fsf@karnak.MagnumOpus.khem>
1 sibling, 0 replies; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-31 1:14 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> Can you share a reproducible recipe with latest Org?
>
> Both a simple .org file and a simple .el config file
> with the minimal setup would help a lot, I don't have
> the problem with my tests.
Sorry for the noise. I traced my problem to adding a "null" to the
variable "org-agenda-start-on-weekday" in a "Any Variable" entry in
"Configure custom Agenda Commands". Brown paper bag time. :-(
Cheers,
Charles
--
Linux is obsolete
(Andrew Tanenbaum)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bug with org-agenda-span & org-agenda-start-day
[not found] ` <87harjyian.fsf@karnak.MagnumOpus.khem>
@ 2012-08-31 1:52 ` Charles Philip Chan
0 siblings, 0 replies; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-31 1:52 UTC (permalink / raw
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
Charles Philip Chan <cpchan@bell.net> writes:
> Sorry for the noise. I traced my problem to adding a "null"
Sorry, I meant "nil".
Charles
--
"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development."
(By dmeggins@aix1.uottawa.ca)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-08-31 1:52 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 3:02 Bug with org-agenda-span & org-agenda-start-day Charles Philip Chan
2012-08-24 11:50 ` Bastien
2012-08-24 22:32 ` Charles Philip Chan
2012-08-27 16:28 ` Bastien
2012-08-27 22:04 ` Charles Philip Chan
2012-08-28 1:00 ` Charles Philip Chan
2012-08-30 5:10 ` Bastien
2012-08-30 5:36 ` Charles Philip Chan
2012-08-30 6:18 ` Bastien
2012-08-30 6:43 ` Charles Philip Chan
2012-08-30 7:00 ` Bastien
2012-08-31 1:14 ` Charles Philip Chan
[not found] ` <87harjyian.fsf@karnak.MagnumOpus.khem>
2012-08-31 1:52 ` Charles Philip Chan
2012-08-30 8:21 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.