Re: [O] Bug: Updating clocktable hides other content [9.0.5 (9.0.5-elpa @ /home/christof/.emacs.d/elpa/org-20170210/)]

2017-03-29 Thread Nicolas Goaziou
Hello,

Christof Musik  writes:

> I have noticed some problems on updating a clocktable in a dynamic block.
> If you update this table with org-dblock-update, then all content besides 
> that table
> is hidden. I have not found a way to show it again without opening the file 
> again.
>
> Example:
>
> 
> * bar
> * baz
> * foo
>
> #+BEGIN: clocktable :maxlevel 2 :scope subtree
> #+CAPTION: Clock summary at [2017-03-25 Sa 23:19]
>
> | Headline | Time   |  |
> |--++--|
> | *Total time* | *2:00* |  |
> |--++--|
> | foo  | 2:00   |  |
> | \_  TODO a   |    | 1:00 |
> | \_  TODO b   |    | 1:00 |
> #+END:
>
>
> ** TODO a
>    CLOCK: [2017-03-25 Sa 21:32]--[2017-03-25 Sa 22:32] =>  1:00
> ** TODO b
>    CLOCK: [2017-03-24 Fr 21:32]--[2017-03-24 Fr 22:32] =>  1:00
> 
>
> Steps to reproduce:
> Go to the line with "BEGIN" and press C-c C-C (org-dblock-update).
> Now only the header foo is shown and bar, baz are hidden. Saving the file does
> not kill them, but without opening the file again they won't come
> back.

Thank you.

I think I fixed this. Could you update Org and confirm it?


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Updating clocktable hides other content [9.0.5 (9.0.5-elpa @ /home/christof/.emacs.d/elpa/org-20170210/)]

2017-03-27 Thread Yasushi SHOJI
Hi Christof,

On Sun, Mar 26, 2017 at 7:37 AM, Christof Musik 
wrote:
>
> I have noticed some problems on updating a clocktable in a dynamic block.
> If you update this table with org-dblock-update, then all content besides
that table
> is hidden. I have not found a way to show it again without opening the
file again.

It's a bug with :scope subtree.  I had noticed this before but haven't come
to fix it.

You can just widen the buffer with C-x n w, or M-x widen.
-- 
  yashi


[O] Bug: Updating clocktable hides other content [9.0.5 (9.0.5-elpa @ /home/christof/.emacs.d/elpa/org-20170210/)]

2017-03-25 Thread Christof Musik
Hi

I have noticed some problems on updating a clocktable in a dynamic block.
If you update this table with org-dblock-update, then all content besides that 
table
is hidden. I have not found a way to show it again without opening the file 
again.

Example:


* bar
* baz
* foo
#+BEGIN: clocktable :maxlevel 2 :scope subtree
#+CAPTION: Clock summary at [2017-03-25 Sa 23:19]
| Headline | Time   |  |
|--++--|
| *Total time* | *2:00* |  |
|--++--|
| foo  | 2:00   |  |
| \_  TODO a   |    | 1:00 |
| \_  TODO b   |    | 1:00 |
#+END:


** TODO a
   CLOCK: [2017-03-25 Sa 21:32]--[2017-03-25 Sa 22:32] =>  1:00
** TODO b
   CLOCK: [2017-03-24 Fr 21:32]--[2017-03-24 Fr 22:32] =>  1:00


Steps to reproduce:
Go to the line with "BEGIN" and press C-c C-C (org-dblock-update).
Now only the header foo is shown and bar, baz are hidden. Saving the file does
not kill them, but without opening the file again they won't come back.


I have also bisected this and found that the commit 
33f8f8adaaa2a2458f7489f0ec714a230e981823
is the culprit for this behavior. Hope this helps as my Lisp knowledge is very 
limited.



Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.7)
 of 2017-02-07
Package: Org mode version 9.0.5 (9.0.5-elpa @ 
/home/christof/.emacs.d/elpa/org-20170210/)

Kind regards
Christof Musik