[O] Bug with org-agenda-span & org-agenda-start-day
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) pgpfGWvZaUsqA.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Bastien 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) pgpZnSvgl1cFH.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan writes: > Bastien 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Bastien 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) pgpjYQZqPxRqI.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Charles Philip Chan writes: Hi Bastien: > Bastien 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) pgpwovVRtbzW8.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Bastien 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 m...@ka4ybr.com, Mark A. Horton KA4YBR) pgpIWylL6nrWk.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan writes: > Bastien 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Bastien 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) pgpxKrT5I2fP8.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Hi Charles, Charles Philip Chan writes: > Bastien 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
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Bastien 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) pgpwHQU9IxGo8.pgp Description: PGP signature
Re: [O] Bug with org-agenda-span & org-agenda-start-day
Charles Philip Chan 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 dmegg...@aix1.uottawa.ca) pgpE7DeIrUQTH.pgp Description: PGP signature