emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Make updated clock table visible
@ 2008-02-07 19:46 Bernt Hansen
  2008-02-08  8:12 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2008-02-07 19:46 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Make updated clock table visible
  2008-02-07 19:46 [PATCH] Make updated clock table visible Bernt Hansen
@ 2008-02-08  8:12 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-02-08  8:12 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1582 bytes --]

Hi Bernt,

good idea, I'll put this in.

- Carsten

On Feb 7, 2008, at 8:46 PM, Bernt Hansen wrote:

> 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
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[-- Attachment #1.2: Type: text/html, Size: 2196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-08  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 19:46 [PATCH] Make updated clock table visible Bernt Hansen
2008-02-08  8:12 ` Carsten Dominik

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).