emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] running org-agenda-todo-yesterday on a habit erroneously sets :LAS


From: Jonathan Reeve
Subject: [BUG] running org-agenda-todo-yesterday on a habit erroneously sets :LAST_REPEAT: as today, instead of yesterday [9.6 (9.6-??-e9da29b6f @ /home/jon/.emacs.d/.local/straight/build-28.1/org/)]
Date: Fri, 01 Jul 2022 18:20:19 +0000

I will often use org-agenda-todo-yesterday to log habits that I did yesterday. It works fine for changing the todo state and logging it as yesterday’s, but the :LAST_REPEAT: property it has, since it’s a habit, is set to today, rather than yesterday.

This means that, for example, I can have a habit that’s set to repeat every day, and run org-agenda-todo-yesterday in Agenda view, which will change the state of a habit to “DONE” for yesterday, but when I reload the buffer, the item disappears, because it thinks it’s already been done for that day. But I want to log it as done for yesterday, and then log it again as done for today.

To reproduce:

  1. create a new todo item, and make it a habit, such that it appears in the agenda
  2. run org-agenda-todo-yesterday
  3. notice that :LAST_REPEAT: is today, instead of yesterday, as it should be

Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) Package: Org mode version 9.6 (9.6-??-e9da29b6f @ home/jon.emacs.d/.local/straight/build-28.1/org/)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]