[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] org-clock.el: Fix column count for :formula %
From: |
Fernando Varesi |
Subject: |
[O] [PATCH] org-clock.el: Fix column count for :formula % |
Date: |
Mon, 11 Jan 2016 13:56:27 -0300 |
User-agent: |
Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) |
* lisp/org-clock.el (org-clocktable-write-default): Count properties
columns when using special :formula %
The previous count did not consider properties columns, so the generated
formula was incorrect.
---
lisp/org-clock.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 5976872..dfc7d4c 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2627,12 +2627,14 @@ from the dynamic block definition."
((eq formula '%)
;; compute the column where the % numbers need to go
(setq pcol (+ 2
+ (if properties (length properties) 0)
(if multifile 1 0)
(if level-p 1 0)
(if timestamp 1 0)
(min maxlevel (or ntcol 100))))
;; compute the column where the total time is
(setq tcol (+ 2
+ (if properties (length properties) 0)
(if multifile 1 0)
(if level-p 1 0)
(if timestamp 1 0)))
--
2.6.4
- [O] [PATCH] org-clock.el: Fix column count for :formula %,
Fernando Varesi <=