4

SCHEDULED or DEADLINE TODO items with active timestamps correctly appear in my Agenda View (day/week/fortnight) under Org 9.0.4.

After making a timestamp inactive, such entries do not appear in the Agenda, as expected.

Pressing [ in Agenda View should display inactive timestamps. However, pressing this does not change the View. A message is displayed indicating that inactive timestamps are now included, but none are included. I have tested this in day, week and fortnight views, both pressing [ before and after changing the view. I tested with a DEADLINE item for today.

How can I display inactive timestamps in the Agenda?

5
  • Say did you ever receive a response on this question? I was looking at the same issue as well.
    – krishnab
    Jan 3, 2018 at 16:05
  • Still waiting for an answer.
    – SabreWolfy
    Jan 3, 2018 at 17:28
  • 1
    Say, I found that there is a variable org-agenda-include-inactive-timestamp that might fit the bill. I guess you include it in a custom agenda command. You can look at the docstring in emacs with C-h v org-agenda-include-inactive-timestamp.
    – krishnab
    Jan 4, 2018 at 6:32
  • 1
    The only difference between an active timestamp and an inactive one is that the inactive timestamp is purposefully excluded from the Agenda view. This is useful for time-stamping journal entries, etc. without cluttering your agenda with non-actionable items. If you want this to appear in your Agenda, just use the active timestamp instead.
    – Adam
    Feb 11, 2018 at 12:06
  • @krishnab: The correct spelling is org-agenda-include-inactive-timestamps, with an "s" at the end. Aug 22, 2019 at 15:27

2 Answers 2

2

Using the hint by krishnab a possible function would be:

(defun org-agenda-inactive ()
  (interactive)
  (let ((org-agenda-include-inactive-timestamps t))
    (org-agenda)))

And using M-x org-agenda-inactive for the new function.

1
  • 2
    Thanks. I did it one step further. I use C-c a to call the normal org-agenda. And I use C-c b to call the org-agenda that show inactive timestamps, by adding (global-set-key (kbd "C-c a") 'org-agenda) and (global-set-key (kbd "C-c b") 'org-agenda-inactive) to the .emacs. Aug 1, 2020 at 22:20
0

Just to build on top of the excellent solution from Slaven, I did it one step further.

I use C-c a to call the normal org-agenda. And I use C-c b to call the org-agenda that show inactive timestamps.

(defun org-agenda-inactive ()
  (interactive)
  (let ((org-agenda-include-inactive-timestamps t))
    (org-agenda))
  )
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c b") 'org-agenda-inactive)

Your Answer

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

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