From: Kyle Meyer <kyle@kyleam.com>
To: Benson Chu <bensonchu457@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Update org-clock-out-time when resolving clocks
Date: Mon, 17 Aug 2020 00:13:34 -0400 [thread overview]
Message-ID: <87blj9yknl.fsf@kyleam.com> (raw)
In-Reply-To: <87wo275q9f.fsf@gmail.com>
Benson Chu writes:
> I noticed this while using `org-resolve-clocks' when
> `org-clock-continuously' was set to true.
>
> Let's say I clock into "Task 1" at 12:00, and then at 12:30, I start
> working on "Task 2". Then, at 12:45, I notice that I forgot to clock out
> of "Task 1". No worries, org-mode has `org-resolve-clocks'! So, I invoke
> `org-resolve-clocks', keep 30 minutes, and then clock into "Task
> 2". However, when I clock in, the clock start time is 12:45, violating
> the promise that `org-clock-continuously' makes.
>
> This patch updates the variable `org-clock-out-time' when `org-clock-out'
> gets passed an `at-time', which fixes the issue I run into.
Thanks for the patch. It looks correct to me.
> The patch is attached. Is there anything else I need to do?
The only thing I noticed missing is a TINYCHANGE cookie...
> Subject: [PATCH] org-clock.el: Update org-clock-out-time from
> org-resolve-clocks
>
> * lisp/org-clock.el (org-clock-out): If `at-time' was passed, set
> org-clock-out-time to that value. Otherwise, set it to now.
... here. I've added it when applying (bd97851c4).
Thanks again.
prev parent reply other threads:[~2020-08-17 4:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-09 23:54 [PATCH] Update org-clock-out-time when resolving clocks Benson Chu
2020-08-17 4:13 ` Kyle Meyer [this message]
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=87blj9yknl.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=bensonchu457@gmail.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).