emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Make updated clock table visible
Date: Thu, 07 Feb 2008 14:46:20 -0500	[thread overview]
Message-ID: <87abmcczxv.fsf@gollum.intra.norang.ca> (raw)

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	other threads:[~2008-02-07 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-07 19:46 Bernt Hansen [this message]
2008-02-08  8:12 ` [PATCH] Make updated clock table visible Carsten Dominik

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=87abmcczxv.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --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).