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:
- create a new todo item, and make it a habit, such that it appears in the agenda
- run org-agenda-todo-yesterday
- 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/)