From: Olli Piepponen <kotkis@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-clock-remove-empty-clock-drawer eats LOGBOOK drawer before todo state gets logged [8.3.2 (8.3.2-52-g6d0af5-elpaplus @ /Users/Olli/.emacs.d/elpa/org-20151228/)]
Date: Thu, 07 Jan 2016 00:02:53 +0700 [thread overview]
Message-ID: <m2fuyapro0.fsf@gmail.com> (raw)
In-Reply-To: <87bn8yu5e9.fsf@nicolasgoaziou.fr>
Thanks for the quick fix!
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Olli P <kotkis@gmail.com> writes:
>
>> Steps to reproduce:
>>
>> Launching Emacs with -Q, calling `M-x package-initialize` and then `M-x
>> org-mode`, and evaluating the following settings:
>>
>> (setq org-clock-into-drawer t)
>> (setq org-log-into-drawer t)
>> (setq org-clock-into-drawer t)
>> (setq org-log-done 'time)
>> (setq org-clock-out-when-done t)
>> (setq org-clock-out-remove-zero-time-clocks t)
>> (setq org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)")))
>>
>> Creating a new task, clock-in in and immediately completing the task
>> will result in:
>> ----------------------------------------------------------------------
>>
>> * DONE I bug out
>> CLOSED: [2016-01-03 Sun 21:36]
>> - State "DONE" from "TODO" [2016-01-03 Sun 21:36]
>>
>> ----------------------------------------------------------------------
>> Instead of the expected:
>> ----------------------------------------------------------------------
>>
>> * DONE I bug out
>> CLOSED: [2016-01-03 Sun 21:38]
>> :LOGBOOK:
>> - State "DONE" from "TODO" [2016-01-03 Sun 21:38]
>> :END:
>>
>> ----------------------------------------------------------------------
>> If I wait for the timer to run for a minute then things work as expected
>> as well:
>> ----------------------------------------------------------------------
>>
>> * DONE I bug out
>> CLOSED: [2016-01-03 Sun 23:00]
>> :LOGBOOK:
>> - State "DONE" from "TODO" [2016-01-03 Sun 23:00]
>> CLOCK: [2016-01-03 Sun 22:59]--[2016-01-03 Sun 23:00] => 0:01
>> :END:
>>
>> ----------------------------------------------------------------------
>> The culprit is `org-clock-remove-empty-clock-drawer` that gets run at
>> the end of `org-clock-out` for being a `org-clock-out-hook`.
>
> Fixed in development version. Thank you for the report.
>
> Regards,
prev parent reply other threads:[~2016-01-06 17:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-03 16:09 Bug: org-clock-remove-empty-clock-drawer eats LOGBOOK drawer before todo state gets logged [8.3.2 (8.3.2-52-g6d0af5-elpaplus @ /Users/Olli/.emacs.d/elpa/org-20151228/)] Olli P
2016-01-06 14:52 ` Nicolas Goaziou
2016-01-06 17:02 ` Olli Piepponen [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=m2fuyapro0.fsf@gmail.com \
--to=kotkis@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).