From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Make updated clock table visible Date: Thu, 07 Feb 2008 14:46:20 -0500 Message-ID: <87abmcczxv.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNChf-0006jp-4Q for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 14:46:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNCha-0006gb-1S for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 14:46:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNChZ-0006gF-PW for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 14:46:29 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JNChZ-0008Bh-Jc for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 14:46:29 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JNChX-0005G6-8Y for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 19:46:27 +0000 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 19:46:27 +0000 Received: from bernt by cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 19:46:27 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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