Re: [O] stop results drawers from folding?

2018-02-14 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I have tracked this issue down to the last line of this function:
>
> (defun org-show-entry ()
>   "Show the body directly following this heading.
> Show the heading too, if it is currently invisible."
>   (interactive)
>   (save-excursion
> (ignore-errors
>   (org-back-to-heading t)
>   (outline-flag-region
>(max (point-min) (1- (point)))
>(save-excursion
> (if (re-search-forward
>   (concat "[\r\n]\\(" org-outline-regexp "\\)") nil t)
>  (match-beginning 1)
>(point-max)))
>nil)
>   (org-cycle-hide-drawers 'children
>
> This command gets called in many places, e.g. org-next-block, which is
> called by org-babel-next-src-block. It is inconvenient when you use results
> drawers, as it closes them when you navigate around.
>
> It isn't obvious how to suppress that behavior. Any thoughts?

I see. There are some changes with drawers visibility on master. You may
want to test that branch.

Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] stop results drawers from folding?

2018-02-14 Thread John Kitchin
I have tracked this issue down to the last line of this function:

(defun org-show-entry ()
  "Show the body directly following this heading.
Show the heading too, if it is currently invisible."
  (interactive)
  (save-excursion
(ignore-errors
  (org-back-to-heading t)
  (outline-flag-region
   (max (point-min) (1- (point)))
   (save-excursion
(if (re-search-forward
  (concat "[\r\n]\\(" org-outline-regexp "\\)") nil t)
 (match-beginning 1)
   (point-max)))
   nil)
  (org-cycle-hide-drawers 'children

This command gets called in many places, e.g. org-next-block, which is
called by org-babel-next-src-block. It is inconvenient when you use results
drawers, as it closes them when you navigate around.

It isn't obvious how to suppress that behavior. Any thoughts?


John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Sat, Feb 3, 2018 at 8:10 AM, John Kitchin 
wrote:

> hm. naturally even though this has bugged me for months, publically asking
> about it seems to have made the issue vanish! If I figure out what the
> issue was I will bring it up again later. Sorry for the noise.
>
> John
>
> ---
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 <(412)%20268-7803>
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>
> On Thu, Feb 1, 2018 at 2:44 PM, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> John Kitchin  writes:
>>
>> > I use results drawers for my src blocks alot, and for a while now every
>> > time I run one block, it folds all the other results drawers, unless I
>> use
>> > visible-mode.
>> >
>> > Is there a way to prevent this drawer folding so that they are open
>> when I
>> > open a document, and they stay open while running blocks?
>>
>> Would you have an ECM demonstrating the issue?
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>


Re: [O] stop results drawers from folding?

2018-02-03 Thread John Kitchin
hm. naturally even though this has bugged me for months, publically asking
about it seems to have made the issue vanish! If I figure out what the
issue was I will bring it up again later. Sorry for the noise.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Thu, Feb 1, 2018 at 2:44 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> John Kitchin  writes:
>
> > I use results drawers for my src blocks alot, and for a while now every
> > time I run one block, it folds all the other results drawers, unless I
> use
> > visible-mode.
> >
> > Is there a way to prevent this drawer folding so that they are open when
> I
> > open a document, and they stay open while running blocks?
>
> Would you have an ECM demonstrating the issue?
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] stop results drawers from folding?

2018-02-01 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I use results drawers for my src blocks alot, and for a while now every
> time I run one block, it folds all the other results drawers, unless I use
> visible-mode.
>
> Is there a way to prevent this drawer folding so that they are open when I
> open a document, and they stay open while running blocks?

Would you have an ECM demonstrating the issue?

Regards,

-- 
Nicolas Goaziou