From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Fix reported file time for clock reports Date: Wed, 8 Jun 2011 15:41:45 -0400 Message-ID: <1307562105-6281-1-git-send-email-bernt@norang.ca> References: <20110513121920.EF6F444B988@u016822.science.uva.nl> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUOde-0003nF-55 for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 15:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUOdc-0005pa-28 for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 15:42:01 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:39588 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUOdb-0005p7-S5 for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 15:41:59 -0400 In-Reply-To: <20110513121920.EF6F444B988@u016822.science.uva.nl> 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: emacs-orgmode@gnu.org Cc: Bernt Hansen , Carsten Dominik * lisp/org-clock.el (org-clocktable-write-default): --- Hi, My agenda clock reports were not displaying total file time correctly anymore. Since the patch for adding properties used up a placeholder when no properties are provided there was no place to put the total file time into the summary line. I'm not completely sure the placeholder is in the right place for this but this works for me. Please double check before applying. This patch is available at git://git.norang.ca/org-mode.git fix-clock-report-file-time Regards, Bernt lisp/org-clock.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index a3caa48..8d00c0a 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2162,9 +2162,9 @@ from the dynamic block defintion." (insert-before-markers "|-\n") ; a hline because a new file starts ;; First the file time, if we have multiple files (when multifile - ;; Summarize the time colleted from this file + ;; Summarize the time collected from this file (insert-before-markers - (format (concat "| %s %s | %s*" (nth 8 lwords) "* | *%s*|\n") + (format (concat "| %s %s | %s*" (nth 8 lwords) "* | %s *%s*|\n") (file-name-nondirectory (car tbl)) (if level-p "| " "") ; level column, maybe (if timestamp "| " "") ; timestamp column, maybe -- 1.7.6.rc0.12.g2c6b5