From: Jonathan Reeve <jonathan@jonreeve.com>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87sfnk7l0h.fsf@jonreeve.com> (raw)
[-- 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 --]
next reply other threads:[~2022-07-05 13:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 18:20 Jonathan Reeve [this message]
2022-07-07 10: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/)] Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfnk7l0h.fsf@jonreeve.com \
--to=jonathan@jonreeve.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).