1

In my org mode file I have:

* TODO [#A] Call UPS 1 <2020-09-25 Fri>

* TODO [#A] Call UPS 2 <2020-09-25 Fri>

* TODO [#A] Call UPS 3 <2020-09-25 Fri .+1w>

But only:

TODO [#A] Call UPS 3

Shows up in the Agenda.

However, all 3 TODO's do show up in the Global TODO List.

I don't understand why, when all 3 TODO's have the same priority and the same date, that only the one with a repeating date shows up in the Agenda.

Any help is appreciated......

Thanks ahead of time.

3
  • The agenda looks towards the future, not the past: the third one shows because it is repeated, so it is shown for Oct 2.
    – NickD
    Sep 28, 2020 at 16:37
  • Thank you NIckD once again. I feel like such a noob LOL. What threw me off is that the agenda does not show the timestamp of the third one, so I did not know it was showing it because it is in future. I do have my agenda set to only show today. I guess the only way to show TODOs with a timestamp in the past is to give them a DEADLINE timestamp. If you wish to provide your response as an answer I would be happy to accept it.
    – ironfish
    Sep 28, 2020 at 16:50
  • If you have the agenda set to show just today, then it should not show any of them. How did you set it to just today? With a weekly agenda, the third one will show on Friday, Oct. 2 but not on any other day. Also, DEADLINE is NOT the way to show TODOs with a timestamp in the past. If you can describe what you are trying to do, I 'd be happy to provide an answer if I can, but ATM I don't understand the question :-)
    – NickD
    Sep 28, 2020 at 18:07

2 Answers 2

1

Suppose that I have a file foo.org with the following contents:

* TODO [#A] Call UPS 1 <2020-09-25 Fri>

* TODO [#A] Call UPS 2 <2020-09-25 Fri>

* TODO [#A] Call UPS 3 <2020-09-25 Fri .+1w>

and this file is the only file in the agenda file list; and I use the default weekly agenda; and I have set up the agenda keybinding as the manual recommends (i.e. just the following in my init file, so that I don't get tripped up by other settings):

(setq org-agenda-files '("/path/to/foo.org"))
(setq org-agenda-span 'week)

(define-key global-map (kbd "C-c a") #'org-agenda)

and I start emacs and construct the agenda with C-c a a, then the agenda looks like this:

Week-agenda (W40):
Monday     28 September 2020 W40
Tuesday    29 September 2020
Wednesday  30 September 2020
Thursday    1 October 2020
Friday      2 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday    3 October 2020
Sunday      4 October 2020

with just the third item in the Friday, Oct 2 slot, as discussed in the comments. That item shows because it is in the future, whereas the others do not show because they are in the past.

If I instead make the agenda a daily agenda by changing the value of org-agenda-span in the init file:

(setq org-agenda-span 'day)

I restart emacs, and get an agenda I see this:

Monday     28 September 2020 W40

That's it: none of them is for today's date, so nothing shows up.

If I make the agenda monthly with

(setq org-agenda-span 'month)

restart emacs and show the agenda, I now see this (with most of the empty entries elided to save space):

Month-agenda (W40-W44):
Monday     28 September 2020 W40
...
Friday      2 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday    3 October 2020
...
Friday      9 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday   10 October 2020
...
Friday     16 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday   17 October 2020
...
Friday     23 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday   24 October 2020
Sunday     25 October 2020
Monday     26 October 2020 W44
Tuesday    27 October 2020

with just the repeating entry showing every Friday.

Finally, if I make the monthly agenda start earlier so that it includes the 09/25 date by adding this to my init file:

(setq org-agenda-start-day "-1w")

so that the monthly agenda starts one week before today, then restart emacs and get an agenda, I get this (again eliding most of the empty days to keep things short):

Month-agenda (W39-W43):
Monday     21 September 2020 W39
Tuesday    22 September 2020
...
Friday     25 September 2020
  foo:        TODO [#A] Call UPS 1 
  foo:        TODO [#A] Call UPS 2 
  foo:        TODO [#A] Call UPS 3 
Saturday   26 September 2020
...
Friday      2 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday    3 October 2020
...
Friday      9 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday   10 October 2020
...
Friday     16 October 2020
  foo:        TODO [#A] Call UPS 3 
Saturday   17 October 2020
...

Now all of them show up on Fri, Sept. 25 and the third, repeating one shows up every Friday after that.

You can also switch time frames interactively: get rid of the customizations except for the org-agenda-files one and restart emacs. Then C-c a a should give you a weekly agenda, as in the first display above. Pressing b moves the time frame back a week; pressing f moves forward a week (or a day or a month depending on org-agenda-span).

The manual is indispensable. For this particular subject, check the chapter on Agenda Views and the section Commands in the Agenda Buffer for all the keys that you can use in the agenda buffer to do various useful things.

I hope this answers your question.

18
  • Just a quick note to say thank you NickD - it will take me a few days to process and try your answers......
    – ironfish
    Sep 28, 2020 at 19:28
  • I understand - take your time.
    – NickD
    Sep 28, 2020 at 20:00
  • Hey NickD. First of all thank you so much for taking the time to provide such an extensive answer.
    – ironfish
    Sep 29, 2020 at 12:26
  • NickD you asked: If you have the agenda set to show just today, then it should not show any of them. How did you set it to just today? I do that with "(setq org-agenda-span 1)"
    – ironfish
    Sep 29, 2020 at 12:27
  • NickD: You asked what I would like to do - I am trying to create a personal planner and organizer and this is how I would like to use it:
    – ironfish
    Sep 29, 2020 at 12:29
0

Just to summarize the above - my question is "How do I include a non-repeating TODO that has a plain date that is in the past, in today's view of the Agenda?"

I believe I found the answer - using a SCHEDULED date vs a plain (Not SCHEDULED nor DEADLINE) date makes a non-repeating item that has a date in the past show in today's Agenda view, with the agenda view showing only today (no past days). This is what I wanted. I have tested this quite a bit so I am pretty confident this will work. If anyone ever wants to test this in future, this may help:

* Testme01 - This does NOT show in Agenda for today (2020-09-29), nor in Global list of TODO's  <2020-09-28 Mon>

* Testme02 - This DOES show in Agenda for today (2020-09-29), but NOT in Global list of TODO's 
  SCHEDULED: <2020-09-28 Mon>

@NickD - thanks again for your time and attention and help to this and my other questions :) You are a great help to me and the community. PS I arrived late into our chat and I think by that time you had (understandably) left.

20
  • The chat does not have to be real-time: you can add things to it and I may (or may not) reply later. No guarantees! BTW, I'm not sure what question your answer addresses, but as long as you are happy, I'm happy. You should read the manual though.
    – NickD
    Sep 29, 2020 at 19:47
  • Hey NickD, I added my question to the answer for clarity. I have been reading the manual and it was not clear to me. I also searched and searched for answers and did not find anything. Hence I asked the question. I don't just post every question here without diggin into things. I discovered my answer not by reading the manual (I did not find an answer) but thru trial and error of an org file.
    – ironfish
    Sep 29, 2020 at 20:46
  • Fair enough - I know that it's sometimes hard to find things in manuals. For the record, the section Deadlines and Scheduling says this in the explanationf ot the SCHEDULED keyword: "The headline is listed under the given date. In addition, a reminder that the scheduled date has passed is present in the compilation for today, until the entry is marked as done, i.e., the task is automatically forwarded until completed."
    – NickD
    Sep 29, 2020 at 20:58
  • Ok, you obviously want to get into it. I am a retired professor and so I know a bit about documentation, instruction, help files, etc. Lets take a look at "a reminder that the scheduled date has passed is present in the compilation for today," 1) Reminder - what is a reminder? Is this defined anywhere in the page? In actuality, the HEADING and not some reminder of it, is listed. So the author assumes that because he knows what he means by a reminder, that anyone else reading this help page will know as well.
    – ironfish
    Sep 29, 2020 at 21:31
  • 2) "compilation for today" - What is a compilation in this case? Not defined on page. "The heading will be shown in the agenda for today" would have been understandable. For the record.
    – ironfish
    Sep 29, 2020 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.