emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] Make updated clock table visible


From: Bernt Hansen
Subject: [Orgmode] [PATCH] Make updated clock table visible
Date: Thu, 07 Feb 2008 14:46:20 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

C-u C-c C-x C-r updates the first clock table in the org file.
If this task is folded the cursor moves to the task but you can't see the
result of the update.  The updated clock table is now immediately visible.
---

I use C-u C-c C-x C-r all the time to update my clock table and 99% of
the time it's folded so I can't see the result.  This patch works for me
but my * Timelog task does not have anything else but the clock table in
it.

I would prefer to display the task like org-cycle does and leave an
:PROPERTIES: drawers folded but I don't know how to do that...

This works for me. :)

-Bernt

 org.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/org.el b/org.el
index c73218b..2db8863 100644
--- a/org.el
+++ b/org.el
@@ -18797,7 +18797,8 @@ When called with a prefix argument, move to the first 
clock table in the
 buffer and update it."
   (interactive "P")
   (org-remove-clock-overlays)
-  (when arg (org-find-dblock "clocktable"))
+  (when arg (org-find-dblock "clocktable")
+         (org-show-entry))
   (if (org-in-clocktable-p)
       (goto-char (org-in-clocktable-p))
     (org-create-dblock (list :name "clocktable"
-- 
1.5.4.34.g053d9






reply via email to

[Prev in Thread] Current Thread [Next in Thread]