From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Helberg Subject: org-pretty-entitities t screws up clocktable formatting Date: Tue, 02 Sep 2014 14:02:27 +0200 Message-ID: <87r3zub2n3.fsf@snow.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnfM-0007Do-Hq for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:58:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOnfE-0000yi-B8 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:58:32 -0400 Received: from mx.snow.nl ([213.154.248.146]:57638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnfE-0000yO-4u for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:58:24 -0400 Received: from imap.snow.nl (imap.snow.nl [213.154.248.156]) by mx.snow.nl (Postfix) with ESMTP id EF97840288 for ; Tue, 2 Sep 2014 14:57:43 +0200 (CEST) Received: from w520jo (neerijnen.snow.nl [213.154.248.134]) by imap.snow.nl (Postfix) with ESMTPSA id 8F0492D6632 for ; Tue, 2 Sep 2014 14:58:08 +0200 (CEST) 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 Hi, The following piece of org-code comes out a bit crooked iff org-pretty-entities is set: * testing CLOCK: [2014-09-02 Tue 10:54]--[2014-09-02 Tue 12:42] => 1:48 CLOCK: [2014-09-02 Tue 09:02]--[2014-09-02 Tue 09:15] => 0:13 CLOCK: [2014-09-01 Mon 14:42]--[2014-09-01 Mon 16:47] => 2:05 ** testing indented CLOCK: [2014-09-01 Mon 14:34]--[2014-09-01 Mon 14:35] => 0:01 CLOCK: [2014-09-01 Mon 12:00]--[2014-09-01 Mon 12:10] => 0:10 CLOCK: [2014-09-01 Mon 08:16]--[2014-09-01 Mon 11:30] => 3:14 * clocktable #+BEGIN: clocktable :maxlevel 3 :block 2014-W36 :formula % #+CAPTION: Clock summary at [2014-09-02 Tue 14:00], for week 2014-W36. | Headline | Time | | | % | |------------------------+--------+------+---+-------| | *Total time* | *7:31* | | | 100.0 | |------------------------+--------+------+---+-------| | testing | 7:31 | | | 100.0 | | \emsp testing indented | | 3:25 | | 45.5 | #+TBLFM: $6='(org-clock-time% @2$3 $3..$5);%.1f #+END: When my cursor is inside the table and I run M-x org-table-align , things come out OK. Somehow setting the table-write function to: (defun my-formatter( ipos tables params ) (progn (org-clocktable-write-default ipos tables params) (forward-line 2) (org-table-align) ) ) doesn't work. I use Emacs 24.4.50 and org-mode 8.2.7c (20140901). Can someone point me into a direction in order to fix this in the org-code? regards, Joost -- Snow B.V.