[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Stop clock on closing emacs

From: Florian Beck
Subject: Re: [O] Stop clock on closing emacs
Date: Sat, 01 Feb 2014 14:58:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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)

... I call `save-all-buffer' in the exit hook.

Sorry for the confusion.

Florian Beck

reply via email to

[Prev in Thread] Current Thread [Next in Thread]