From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: problems with continuous clocking Date: Fri, 02 Aug 2013 21:19:54 +0200 Message-ID: <86bo5frjc5.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hildegund Mythenmetz wrote: > I am often fixing endtimes for clocked items, because I forgot to clock out > (using the function org-resolve-clocks and using the K option (keep x > minutes). Do you forget to clock out when quitting Emacs? If yes, add this to your .emacs: --8<---------------cut here---------------start------------->8--- ;; ask the user if they wish to clock out before killing Emacs (defun leuven--org-query-clock-out () "Ask the user before clocking out. This is a useful function for adding to `kill-emacs-query-functions'." (if (and (featurep 'org-clock) (funcall 'org-clocking-p) (y-or-n-p "You are currently clocking time, clock out? ")) (org-clock-out) t)) ;; only fails on keyboard quit or error (add-hook 'kill-emacs-query-functions 'leuven--org-query-clock-out) --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban