emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-agenda-undo does not work with repeated tasks [9.4]
@ 2020-10-14 15:49 Warren Lynn
  2021-04-25 14:32 ` Bastien
  2021-05-16 22:19 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Warren Lynn @ 2020-10-14 15:49 UTC (permalink / raw)
  To: emacs-orgmode

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

With org-mode 9.4, if you have a repeated task like this:

* TODO My weekly task
  SCHEDULED: <2020-10-14 Wed +1w>

In daily agenda, if you mark the task done, which will cause the above to
change into:

* TODO My weekly task
  SCHEDULED: <2020-10-21 Wed +1w>
  :PROPERTIES:
  :LAST_REPEAT: [2020-10-14 Wed 11:45]
  :END:
  :LOGBOOK:
  - State "DONE"       from "TODO"       [2020-10-14 Wed 11:45]
  :END:

But then if you run "org-agenda-undo" immediately in the agenda buffer, the
task did not revert back to the original, instead, only the "LOGBOOK" part
is gone, so it becomes this:

* TODO My weekly task
  SCHEDULED: <2020-10-21 Wed +1w>
  :PROPERTIES:
  :LAST_REPEAT: [2020-10-14 Wed 11:45]
  :END:

I don't think that's what people would expect from "org-agenda-undo", so it
seems a bug to me.

This bug is also in orgmode 6.3.7, so likely has been there for a long time.

Thanks for looking into this.

Warren

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

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

* Re: Bug: org-agenda-undo does not work with repeated tasks [9.4]
  2020-10-14 15:49 Bug: org-agenda-undo does not work with repeated tasks [9.4] Warren Lynn
@ 2021-04-25 14:32 ` Bastien
  2021-05-16 22:19 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2021-04-25 14:32 UTC (permalink / raw)
  To: Warren Lynn; +Cc: emacs-orgmode

Hi Warren,

Warren Lynn <wrn.lynn@gmail.com> writes:

> With org-mode 9.4, if you have a repeated task like this:
>
> * TODO My weekly task
>   SCHEDULED: <2020-10-14 Wed +1w>
>
> In daily agenda, if you mark the task done, which will cause the
> above to change into:
>
> * TODO My weekly task
>   SCHEDULED: <2020-10-21 Wed +1w>
>   :PROPERTIES:
>   :LAST_REPEAT: [2020-10-14 Wed 11:45]
>   :END:
>   :LOGBOOK:
>   - State "DONE"       from "TODO"       [2020-10-14 Wed 11:45]
>   :END:
>
> But then if you run "org-agenda-undo" immediately in the agenda
> buffer, the task did not revert back to the original, instead, only
> the "LOGBOOK" part is gone, so it becomes this:
>
> * TODO My weekly task
>   SCHEDULED: <2020-10-21 Wed +1w>
>   :PROPERTIES:
>   :LAST_REPEAT: [2020-10-14 Wed 11:45]
>   :END:
>
> I don't think that's what people would expect from "org-agenda-undo",
> so it seems a bug to me.
>
> This bug is also in orgmode 6.3.7, so likely has been there for a
> long time.
>
> Thanks for looking into this.

I cannot look into this right now, but I confirm the bug still exists
in master.

Thanks for reporting it.


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

* Re: Bug: org-agenda-undo does not work with repeated tasks [9.4]
  2020-10-14 15:49 Bug: org-agenda-undo does not work with repeated tasks [9.4] Warren Lynn
  2021-04-25 14:32 ` Bastien
@ 2021-05-16 22:19 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2021-05-16 22:19 UTC (permalink / raw)
  To: Warren Lynn; +Cc: emacs-orgmode

Hi Warren,

Warren Lynn <wrn.lynn@gmail.com> writes:

> But then if you run "org-agenda-undo" immediately in the agenda
> buffer, the task did not revert back to the original, instead, only
> the "LOGBOOK" part is gone

This should be fixed now, thanks.

-- 
 Bastien


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

end of thread, other threads:[~2021-05-16 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-14 15:49 Bug: org-agenda-undo does not work with repeated tasks [9.4] Warren Lynn
2021-04-25 14:32 ` Bastien
2021-05-16 22:19 ` Bastien

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