From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: stop results drawers from folding? Date: Thu, 1 Feb 2018 13:34:15 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1144224aa0e68605642d5b4f" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehMVx-0001iG-LQ for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 16:36:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehMUt-00015E-3y for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 16:35:25 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:50422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehMUs-00013T-Io for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 16:34:18 -0500 Received: by mail-wm0-x229.google.com with SMTP id f71so8735708wmf.0 for ; Thu, 01 Feb 2018 13:34:18 -0800 (PST) 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: org-mode-email --001a1144224aa0e68605642d5b4f Content-Type: text/plain; charset="UTF-8" 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 --001a1144224aa0e68605642d5b4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use results drawers for my src blocks alot, and for a wh= ile 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 th= is drawer folding so that they are open when I open a document, and they st= ay open while running blocks?

Thanks,

John

---------= --------------------------
Professor John Kitchin=C2=A0
Doherty Hall = A207F
Department of Chemical Engineering
Carnegie Mellon UniversityPittsburgh, PA 15213
412-268-7803
--001a1144224aa0e68605642d5b4f-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: stop results drawers from folding? Date: Thu, 01 Feb 2018 23:44:48 +0100 Message-ID: <87inbgwcrj.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehNcE-0000lZ-9n for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 17:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehNbA-0005P8-AA for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 17:45:58 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:34307) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehNb9-0005Le-Oc for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 17:44:52 -0500 In-Reply-To: (John Kitchin's message of "Thu, 1 Feb 2018 13:34:15 -0800") 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: John Kitchin Cc: org-mode-email 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: stop results drawers from folding? Date: Sat, 3 Feb 2018 08:10:12 -0800 Message-ID: References: <87inbgwcrj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1146f4dc70b6040564511009" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei0OP-00023d-Cj for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 11:10:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei0OO-0002OX-6T for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 11:10:17 -0500 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:53817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ei0ON-0002O1-Vt for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 11:10:16 -0500 Received: by mail-wm0-x235.google.com with SMTP id t74so18427949wme.3 for ; Sat, 03 Feb 2018 08:10:15 -0800 (PST) In-Reply-To: <87inbgwcrj.fsf@nicolasgoaziou.fr> 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 --001a1146f4dc70b6040564511009 Content-Type: text/plain; charset="UTF-8" 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 > --001a1146f4dc70b6040564511009 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hm. naturally even though this has bugged me for months, p= ublically 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

-----------------------------------
P= rofessor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical= Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-2= 68-7803

On Thu, Feb 1, 2018 at 2:44 PM, Nicolas Goaz= iou <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

--001a1146f4dc70b6040564511009-- 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: stop results drawers from folding? Date: Wed, 14 Feb 2018 23:05:42 +0100 Message-ID: <87d117ns5l.fsf@nicolasgoaziou.fr> References: <87inbgwcrj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em5BX-0002K5-Jg for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 17:05:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em5BU-0005Jy-Cw for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 17:05:51 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53275) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1em5BU-0005JU-5w for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 17:05:48 -0500 In-Reply-To: (John Kitchin's message of "Wed, 14 Feb 2018 10:29:16 -0800") 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: John Kitchin Cc: org-mode-email 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 Goaziou 0x80A93738