From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: stop results drawers from folding? Date: Wed, 14 Feb 2018 10:29:16 -0800 Message-ID: References: <87inbgwcrj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1cd75ef7e0f405653049ad" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em1o1-0004c0-SB for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 13:29:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em1o0-0007p5-Gv for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 13:29:21 -0500 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:39679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1em1o0-0007oA-4B for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 13:29:20 -0500 Received: by mail-wr0-x22e.google.com with SMTP id w77so926652wrc.6 for ; Wed, 14 Feb 2018 10:29:18 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org-mode-email --94eb2c1cd75ef7e0f405653049ad Content-Type: text/plain; charset="UTF-8" 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 >> > > --94eb2c1cd75ef7e0f405653049ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have tracked this issue down to the last line of this fu= nction:

(defun org-show-entry ()
=C2=A0 &= quot;Show the body directly following this heading.
Show the head= ing too, if it is currently invisible."
=C2=A0 (interactive)=
=C2=A0 (save-excursion
=C2=A0 =C2=A0 (ignore-errors
=C2=A0 =C2=A0 =C2=A0 (org-back-to-heading t)
=C2=A0 =C2= =A0 =C2=A0 (outline-flag-region
=C2=A0 =C2=A0 =C2=A0 =C2=A0(max (= point-min) (1- (point)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(save-excursi= on
(if (re-search-forwar= d
=C2=A0 =C2=A0 =C2=A0 (c= oncat "[\r\n]\\(" org-outline-regexp "\\)") nil t)
=C2=A0 =C2=A0 =C2=A0(match-be= ginning 1)
=C2=A0 =C2=A0(= point-max)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0nil)
=C2=A0 =C2= =A0 =C2=A0 (org-cycle-hide-drawers 'children))))

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

It isn't obvious how to suppress that behavior. Any thoughts?<= /div>


John

--------------------------------= ---
Professor John Kitchin=C2=A0
Doherty Hall A207F
Department of = Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213<= br>412-268-7803

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.=C2=A0=C2=A0

= John

-----------------------------------
Professor John Kitc= hin=C2=A0
Doherty Hall A207F
Department of Chemical Engineering
Ca= rnegie 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 ever= y
> 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 wh= en I
> open a document, and they stay open while running blocks?

Would you have an ECM demonstrating the issue?

Regards,

--
Nicolas Goaziou


--94eb2c1cd75ef7e0f405653049ad--