emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* stop results drawers from folding?
@ 2018-02-01 21:34 John Kitchin
  2018-02-01 22:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2018-02-01 21:34 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

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?

Thanks,

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

[-- Attachment #2: Type: text/html, Size: 897 bytes --]

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

* Re: stop results drawers from folding?
  2018-02-01 21:34 stop results drawers from folding? John Kitchin
@ 2018-02-01 22:44 ` Nicolas Goaziou
  2018-02-03 16:10   ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-02-01 22:44 UTC (permalink / raw)
  To: John Kitchin; +Cc: org-mode-email

Hello,

John Kitchin <jkitchin@andrew.cmu.edu> 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

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

* Re: stop results drawers from folding?
  2018-02-01 22:44 ` Nicolas Goaziou
@ 2018-02-03 16:10   ` John Kitchin
  2018-02-14 18:29     ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2018-02-03 16:10 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

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 <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> John Kitchin <jkitchin@andrew.cmu.edu> 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
>

[-- Attachment #2: Type: text/html, Size: 1762 bytes --]

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

* Re: stop results drawers from folding?
  2018-02-03 16:10   ` John Kitchin
@ 2018-02-14 18:29     ` John Kitchin
  2018-02-14 22:05       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2018-02-14 18:29 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]

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 <jkitchin@andrew.cmu.edu>
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 <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> John Kitchin <jkitchin@andrew.cmu.edu> 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
>>
>
>

[-- Attachment #2: Type: text/html, Size: 4106 bytes --]

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

* Re: stop results drawers from folding?
  2018-02-14 18:29     ` John Kitchin
@ 2018-02-14 22:05       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2018-02-14 22:05 UTC (permalink / raw)
  To: John Kitchin; +Cc: org-mode-email

Hello,

John Kitchin <jkitchin@andrew.cmu.edu> 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 Goaziou                                                0x80A93738

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

end of thread, other threads:[~2018-02-14 22:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 21:34 stop results drawers from folding? John Kitchin
2018-02-01 22:44 ` Nicolas Goaziou
2018-02-03 16:10   ` John Kitchin
2018-02-14 18:29     ` John Kitchin
2018-02-14 22:05       ` Nicolas Goaziou

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