* [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
@ 2023-10-14 14:56 Daniel Ortmann
2023-10-15 8:39 ` Ihor Radchenko
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Ortmann @ 2023-10-14 14:56 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
I have a repeatedly-scheduled TODO with this entry for the schedule:
SCHEDULED: <2023-10-15 Sun .+1d -0d>
The TODO is marked with 'sometag'.
In the regular agenda view (C-a a) I narrow with /sometag.
Then S-I to start the clock.
Finally, t and C-c C-c to close today's action.
The result is that the agenda shows the current time (in this case 9:41)
instead of the correct 6 minutes. Note that the task's LOGBOOK entry
correctly shows 0:06 minutes.
I expected to see the usual 6 minutes for the task in the agenda view.
Today is the first time I noticed this anomaly, but perhaps it has been
happening previously?
Not sure if this is new as of today: [2023-10-14 Sat 09:47] (CDT time)
A sample task:
* TODO sometask with sometag :sometag:
SCHEDULED: <2023-10-15 Sun .+1d -0d>
Emacs : GNU Emacs 30.0.50 (build 40, x86_64-pc-linux-gnu, GTK+ Version
3.24.37, cairo version 1.16.0)
of 2023-10-14
Package: Org mode version 9.7-pre (release_9.6.10-840-g9fcbd1 @
/home/d/src/git-org-mode/lisp/)
--
Daniel Ortmann <dortmann31415@gmail.com> 612-518-3147 m
key: C9E170E2, fingerprint = 81BB 6CAF F1EC F6C7 690C F4E9 66D7 7AFD
C9E1 70E2
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-14 14:56 [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)] Daniel Ortmann
@ 2023-10-15 8:39 ` Ihor Radchenko
2023-10-15 8:52 ` Daniel Ortmann
0 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2023-10-15 8:39 UTC (permalink / raw)
To: Daniel Ortmann; +Cc: emacs-orgmode
Daniel Ortmann <dortmann31415@pobox.com> writes:
> I have a repeatedly-scheduled TODO with this entry for the schedule:
> SCHEDULED: <2023-10-15 Sun .+1d -0d>
>
> The TODO is marked with 'sometag'.
>
> In the regular agenda view (C-a a) I narrow with /sometag.
> Then S-I to start the clock.
> Finally, t and C-c C-c to close today's action.
>
> The result is that the agenda shows the current time (in this case
> 9:41) ...
May you please elaborate about "agenda shows the current time"?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-15 8:39 ` Ihor Radchenko
@ 2023-10-15 8:52 ` Daniel Ortmann
2023-10-15 9:00 ` Ihor Radchenko
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Ortmann @ 2023-10-15 8:52 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]
Hey,
The problem no longer appears! Excellent. Not sure what fixed it.
In the last entry below, the "Clocked:" part of the log would have
showed 3:47 (i.e. the current local CDT time) rather than the time to
complete the task which is now correctly shown as 0:01 minutes.
Problem fixed ... but it would be nice to know it was not an accidental fix.
Thank you! You can close it or investigate further at your discretion.
On 10/15/23 03:39, Ihor Radchenko wrote:
> Daniel Ortmann<dortmann31415@pobox.com> writes:
>
>> I have a repeatedly-scheduled TODO with this entry for the schedule:
>> SCHEDULED: <2023-10-15 Sun .+1d -0d>
>>
>> The TODO is marked with 'sometag'.
>>
>> In the regular agenda view (C-a a) I narrow with /sometag.
>> Then S-I to start the clock.
>> Finally, t and C-c C-c to close today's action.
>>
>> The result is that the agenda shows the current time (in this case
>> 9:41) ...
> May you please elaborate about "agenda shows the current time"?
>
[-- Attachment #2.1: Type: text/html, Size: 1877 bytes --]
[-- Attachment #2.2: YAqPGJKj0NEbIkFB.png --]
[-- Type: image/png, Size: 27714 bytes --]
[-- Attachment #2.3: SkYY0rYmGMZ1a4D8.png --]
[-- Type: image/png, Size: 28351 bytes --]
[-- Attachment #2.4: 9nNNjPMYWnp4xxTX.png --]
[-- Type: image/png, Size: 41860 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-15 8:52 ` Daniel Ortmann
@ 2023-10-15 9:00 ` Ihor Radchenko
2023-10-15 9:13 ` Daniel Ortmann
0 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2023-10-15 9:00 UTC (permalink / raw)
To: Daniel Ortmann; +Cc: emacs-orgmode
Daniel Ortmann <dortmann31415@pobox.com> writes:
> In the last entry below, the "Clocked:" part of the log would have
> showed 3:47 (i.e. the current local CDT time) rather than the time to
> complete the task which is now correctly shown as 0:01 minutes.
Do you mean that you used agenda clockcheck mode? I tried and I see no
problem there.
> The problem no longer appears! Excellent. Not sure what fixed it.
> ...
> Problem fixed ... but it would be nice to know it was not an accidental fix.
I am not sure what you mean by fixed. Did you do anything?
> Thank you! You can close it or investigate further at your discretion.
I am not able to reproduce the problem. Since you cannot either, I am
closing this bug.
Canceled.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-15 9:00 ` Ihor Radchenko
@ 2023-10-15 9:13 ` Daniel Ortmann
2023-10-16 7:38 ` Ihor Radchenko
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Ortmann @ 2023-10-15 9:13 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
No, no, not clock check mode.
- I created a TODO with a scheduled time that repeats. When completed
it remains alive to be scheduled the next day.
- I started the clock on that TODO task.
- Then completed the task with 't' in the Agenda view.
- The task's "clock time" shows in the log ... i.e. how much time I
spent completing that task.
==>> Previously, a day or so ago, the current local time was recorded in
the Agenda log rather than the "clock time" (i.e. rather than the time
spent to complete the task).
==>> Now, the current "clock time" again is correctly recorded in the log.
I hope the screen captured images came across in the previous email?
They should help explain.
On 10/15/23 04:00, Ihor Radchenko wrote:
> Daniel Ortmann <dortmann31415@pobox.com> writes:
>
>> In the last entry below, the "Clocked:" part of the log would have
>> showed 3:47 (i.e. the current local CDT time) rather than the time to
>> complete the task which is now correctly shown as 0:01 minutes.
> Do you mean that you used agenda clockcheck mode? I tried and I see no
> problem there.
>
>> The problem no longer appears! Excellent. Not sure what fixed it.
>> ...
>> Problem fixed ... but it would be nice to know it was not an accidental fix.
> I am not sure what you mean by fixed. Did you do anything?
>
>> Thank you! You can close it or investigate further at your discretion.
> I am not able to reproduce the problem. Since you cannot either, I am
> closing this bug.
>
> Canceled.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-15 9:13 ` Daniel Ortmann
@ 2023-10-16 7:38 ` Ihor Radchenko
2023-10-16 20:50 ` Daniel Ortmann
0 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2023-10-16 7:38 UTC (permalink / raw)
To: Daniel Ortmann; +Cc: emacs-orgmode
Daniel Ortmann <dortmann31415@pobox.com> writes:
> No, no, not clock check mode.
>
> - I created a TODO with a scheduled time that repeats. When completed
> it remains alive to be scheduled the next day.
>
> - I started the clock on that TODO task.
>
> - Then completed the task with 't' in the Agenda view.
>
> - The task's "clock time" shows in the log ... i.e. how much time I
> spent completing that task.
Ok. Got it.
> ==>> Previously, a day or so ago, the current local time was recorded in
> the Agenda log rather than the "clock time" (i.e. rather than the time
> spent to complete the task).
>
> ==>> Now, the current "clock time" again is correctly recorded in the log.
I looked into the code, and I do have a feeling that it is brittle
(agenda is a very old and convoluted code), but without a concrete
reproducer I wouldn't dare to touch it.
> I hope the screen captured images came across in the previous email?
> They should help explain.
I indeed did not notice the attachments - they were not indicated in the
plain/text part of the email. They indeed did help to explain things.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)]
2023-10-16 7:38 ` Ihor Radchenko
@ 2023-10-16 20:50 ` Daniel Ortmann
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Ortmann @ 2023-10-16 20:50 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]
A bit more clarity ...
* If the task clock is activated on a TODO in the agenda,
* and closed quickly enough that the elapsed time is 0:00,
* then MOMENTARILY the agenda shows the CURRENT WALLCLOCK TIME.
* The actual logbook entry shows the correct 0:00 elapsed task time.
* And when the agenda is merely REFRESHED the wallclock time is
replaced with the 0:00.
So there seems to be NO BUG. It's just an odd transient behavior which
I now noticed only because of tracking "time" on some small tasks.
Definitely not worth touching brittle code. "It's just how it is."
And that's ok! :-)
Thank you for your attention to this matter which now is clearly smaller
than expected.
On 10/16/23 02:38, Ihor Radchenko wrote:
> Daniel Ortmann<dortmann31415@pobox.com> writes:
>
>> No, no, not clock check mode.
>>
>> - I created a TODO with a scheduled time that repeats. When completed
>> it remains alive to be scheduled the next day.
>>
>> - I started the clock on that TODO task.
>>
>> - Then completed the task with 't' in the Agenda view.
>>
>> - The task's "clock time" shows in the log ... i.e. how much time I
>> spent completing that task.
> Ok. Got it.
>
>> ==>> Previously, a day or so ago, the current local time was recorded in
>> the Agenda log rather than the "clock time" (i.e. rather than the time
>> spent to complete the task).
>>
>> ==>> Now, the current "clock time" again is correctly recorded in the log.
> I looked into the code, and I do have a feeling that it is brittle
> (agenda is a very old and convoluted code), but without a concrete
> reproducer I wouldn't dare to touch it.
>
>> I hope the screen captured images came across in the previous email?
>> They should help explain.
> I indeed did not notice the attachments - they were not indicated in the
> plain/text part of the email. They indeed did help to explain things.
>
[-- Attachment #2: Type: text/html, Size: 2966 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-16 20:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-14 14:56 [BUG] org agenda showing current time - not task time when closing repeatedly-scheduled task [9.7-pre (release_9.6.10-840-g9fcbd1 @ /home/d/src/git-org-mode/lisp/)] Daniel Ortmann
2023-10-15 8:39 ` Ihor Radchenko
2023-10-15 8:52 ` Daniel Ortmann
2023-10-15 9:00 ` Ihor Radchenko
2023-10-15 9:13 ` Daniel Ortmann
2023-10-16 7:38 ` Ihor Radchenko
2023-10-16 20:50 ` Daniel Ortmann
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.