From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Marking an item DONE using the most recently logged timestamp Date: Tue, 2 Aug 2016 20:28:48 +0200 Message-ID: <0020483f-59fb-ab4c-489a-54331d9a2725@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUeR5-0002Ko-Pu for emacs-orgmode@gnu.org; Tue, 02 Aug 2016 14:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUeR0-0008M4-Cb for emacs-orgmode@gnu.org; Tue, 02 Aug 2016 14:29:02 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUeR0-0008LY-6M for emacs-orgmode@gnu.org; Tue, 02 Aug 2016 14:28:58 -0400 Received: by mail-wm0-x242.google.com with SMTP id q128so32339326wma.1 for ; Tue, 02 Aug 2016 11:28:57 -0700 (PDT) Received: from [192.168.1.5] (x4d0b7e10.dyn.telefonica.de. [77.11.126.16]) by smtp.googlemail.com with ESMTPSA id q186sm24801555wma.1.2016.08.02.11.28.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2016 11:28:55 -0700 (PDT) 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@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" Dear Org-mode community, as an extension to https://lists.gnu.org/archive/html/emacs-orgmode/2016-07/msg00183.html (Useful interactive functions for clock logs […]) I implemented another function you may find useful: org-todo-mark-done-from-log https://github.com/clange/emacs/blob/master/.emacs.d/init/org-clock.el#L18 (stable link to current revision: https://github.com/clange/emacs/blob/d6356d9b90bf02108bfbe226d06911ab4a8bb430/.emacs.d/init/org-clock.el#L18) This function marks the current item done. Instead of the current time, it reports the most recent time logged (clocked) for this item as closing time. Use case: you finished a TODO task and logged time on it but forgot to mark it DONE. Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → Please note: I will be on parental leave from 29 July to 28 October. Colleagues will stand in for me by project.