emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joost Helberg <joost@snow.nl>
To: emacs-orgmode@gnu.org
Subject: org-pretty-entitities t screws up clocktable formatting
Date: Tue, 02 Sep 2014 14:02:27 +0200	[thread overview]
Message-ID: <87r3zub2n3.fsf@snow.nl> (raw)

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.

                 reply	other threads:[~2014-09-02 12:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3zub2n3.fsf@snow.nl \
    --to=joost@snow.nl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).