all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [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/)]
@ 2022-07-01 18:20 Jonathan Reeve
  2022-07-07 10:20 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Reeve @ 2022-07-01 18:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

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/)

[-- Attachment #2: Type: text/html, Size: 2875 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [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/)]
  2022-07-01 18:20 [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/)] Jonathan Reeve
@ 2022-07-07 10:20 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-07-07 10:20 UTC (permalink / raw)
  To: Jonathan Reeve; +Cc: emacs-orgmode

Jonathan Reeve <jonathan@jonreeve.com> writes:

> 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.

Thanks!
Fixed on main via 0495961f3.

Best,
Ihor


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-07 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-01 18:20 [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/)] Jonathan Reeve
2022-07-07 10:20 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.