From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Make updated clock table visible Date: Fri, 8 Feb 2008 09:12:49 +0100 Message-ID: <507C9CAB-3879-4BFC-A7F0-50C9566B42F8@science.uva.nl> References: <87abmcczxv.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: multipart/mixed; boundary="===============1833687211==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNPU7-0008Qf-EQ for emacs-orgmode@gnu.org; Fri, 08 Feb 2008 04:25:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNPU6-0008Px-Hn for emacs-orgmode@gnu.org; Fri, 08 Feb 2008 04:25:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNPU5-0008PW-Hh for emacs-orgmode@gnu.org; Fri, 08 Feb 2008 04:25:25 -0500 Received: from hu-out-0506.google.com ([72.14.214.238]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNPU4-0000Pz-V7 for emacs-orgmode@gnu.org; Fri, 08 Feb 2008 04:25:25 -0500 Received: by hu-out-0506.google.com with SMTP id 23so5977455huc.1 for ; Fri, 08 Feb 2008 01:25:24 -0800 (PST) In-Reply-To: <87abmcczxv.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org --===============1833687211== Content-Type: multipart/alternative; boundary=Apple-Mail-19-812869864 --Apple-Mail-19-812869864 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 --Apple-Mail-19-812869864 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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

= --Apple-Mail-19-812869864-- --===============1833687211== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1833687211==--