From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: stop results drawers from folding?
Date: Wed, 14 Feb 2018 10:29:16 -0800 [thread overview]
Message-ID: <CAJ51ETo6b1M8C9G05K7a753WEFCV7fBGR5hnt4PZ=ou-nEm3Lw@mail.gmail.com> (raw)
In-Reply-To: <CAJ51ETpp-t8cYWriamC_MuYUGkOQOx8c6uHeD2n7Udpxq2rHqQ@mail.gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2018-02-14 18:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2018-02-14 22:05 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51ETo6b1M8C9G05K7a753WEFCV7fBGR5hnt4PZ=ou-nEm3Lw@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).