On 01.02.2014 14:07, Igor Sosa Mayor wrote:
Thanks a lot. This is much better. But: are you really using this idea? The problem is that the kill-emacs-hook does not ask for save the modified buffer. That means: I see that the end time is being put into the org buffer, but the buffer/file is not being saved...
You are right. I didn't think of this because...
I solved the problem (but maybe there is a more elegant way...) adding the following: (defun org-clock-out-maybe () "Stop a currently running clock." (org-clock-out nil t) (org-save-all-org-buffers))
... I call `save-all-buffer' in the exit hook. Sorry for the confusion. -- Florian Beck