From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: (org-entry-get (point) "CLOCK") fails now Date: Sun, 30 Aug 2015 22:18:13 +0200 Message-ID: <87zj1834ze.fsf@mbork.pl> References: <87io7xc8au.fsf@kaffanke.at> <87r3ml2ca9.fsf@nicolasgoaziou.fr> <87si71lycn.fsf@mbork.pl> <87mvx83ipc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW93b-0001BO-UD for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 16:18:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZW93X-0001dr-SX for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 16:18:27 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:47296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW93X-0001dX-Kx for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 16:18:23 -0400 In-reply-to: <87mvx83ipc.fsf@nicolasgoaziou.fr> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Kaffanke , emacs-orgmode@gnu.org On 2015-08-30, at 17:21, Nicolas Goaziou wrote: > Hello, > > Point should be on clocked out clock when `org-clock-out-hook' is run. > You can probably use > > (org-element-property :duration (org-element-at-point)) > > to extract last duration. Thanks, that does the trick! Still, I'm not sure how to handle the situation when the last line is automatically removed due to (setq org-clock-out-remove-zero-time-clocks t) > Regards, Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University