emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* changed visibility when using org-goto-named-src-block
@ 2017-11-27 17:14 Eric S Fraga
  2017-11-27 17:48 ` Berry, Charles
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2017-11-27 17:14 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello all,

Not sure if this has changed at some point but I have recently noticed
that when I invoke org-babel-goto-named-src-block, all entries that have
source blocks become visible (or maybe all contents become visible)
regardless of what was folded or not before invoking the command.  I had
the impression, maybe erroneously, that this did not happen before.

There is nothing in the code for that function that indicates that this
should happen so I wonder what controls this behaviour?  It happens with
emacs -Q as well so it's not me (I hope).

thanks,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-170-g51234f

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: changed visibility when using org-goto-named-src-block
  2017-11-27 17:14 changed visibility when using org-goto-named-src-block Eric S Fraga
@ 2017-11-27 17:48 ` Berry, Charles
  2017-11-28  7:54   ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Berry, Charles @ 2017-11-27 17:48 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode@gnu.org


> On Nov 27, 2017, at 9:14 AM, Eric S Fraga <esflists@gmail.com> wrote:
> 
> when I invoke org-babel-goto-named-src-block, all entries that have
> source blocks become visible (or maybe all contents become visible)
> regardless of what was folded or not before invoking the command.

This happens when `org-babel-src-block-names' calls `org-next-block' calls `org-show-context'.

HTH,

Chuck

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

* Re: changed visibility when using org-goto-named-src-block
  2017-11-27 17:48 ` Berry, Charles
@ 2017-11-28  7:54   ` Eric S Fraga
  2017-11-28 17:20     ` Berry, Charles
  2017-11-28 23:00     ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Eric S Fraga @ 2017-11-28  7:54 UTC (permalink / raw)
  To: Berry, Charles; +Cc: emacs-orgmode@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 356 bytes --]

On Monday, 27 Nov 2017 at 17:48, Berry, Charles wrote:
> This happens when `org-babel-src-block-names' calls `org-next-block'
> calls `org-show-context'.

Thanks.  Was it always thus?  It would be nice to have the visibility go
back to what it was before the command was invoked.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-117-g5b2b8f

[-- Attachment #1.1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: changed visibility when using org-goto-named-src-block
  2017-11-28  7:54   ` Eric S Fraga
@ 2017-11-28 17:20     ` Berry, Charles
  2017-11-28 23:00     ` Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: Berry, Charles @ 2017-11-28 17:20 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode@gnu.org


> On Nov 27, 2017, at 11:54 PM, Eric S Fraga <esflists@gmail.com> wrote:
> 
> On Monday, 27 Nov 2017 at 17:48, Berry, Charles wrote:
>> This happens when `org-babel-src-block-names' calls `org-next-block'
>> calls `org-show-context'.
> 
> Thanks.  Was it always thus?  


No. In 8.0.7 (and probably later versions) org-babel-src-block-names did not use `org-next-block'.

Agree that keeping visibility as close to original as possible is a good thing, but do not have time to 
play with it these days. 

Chuck

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

* Re: changed visibility when using org-goto-named-src-block
  2017-11-28  7:54   ` Eric S Fraga
  2017-11-28 17:20     ` Berry, Charles
@ 2017-11-28 23:00     ` Nicolas Goaziou
  2017-11-30 14:51       ` Eric S Fraga
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2017-11-28 23:00 UTC (permalink / raw)
  To: Berry, Charles; +Cc: Eric S Fraga, emacs-orgmode@gnu.org

Hello,

Eric S Fraga <esflists@gmail.com> writes:

> On Monday, 27 Nov 2017 at 17:48, Berry, Charles wrote:
>> This happens when `org-babel-src-block-names' calls `org-next-block'
>> calls `org-show-context'.
>
> Thanks.  Was it always thus?  It would be nice to have the visibility go
> back to what it was before the command was invoked.

I have made `org-babel-src-block-names' more neutral, since it is not
interactive. Thank you.

Regards,

-- 
Nicolas Goaziou

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

* Re: changed visibility when using org-goto-named-src-block
  2017-11-28 23:00     ` Nicolas Goaziou
@ 2017-11-30 14:51       ` Eric S Fraga
  0 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2017-11-30 14:51 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Eric S Fraga, emacs-orgmode@gnu.org, Berry, Charles

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

On Wednesday, 29 Nov 2017 at 00:00, Nicolas Goaziou wrote:
> I have made `org-babel-src-block-names' more neutral, since it is not
> interactive. Thank you.

And this seems to have done the job very nicely!  Thank you.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-206-g1bb9cf

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

end of thread, other threads:[~2017-11-30 14:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-27 17:14 changed visibility when using org-goto-named-src-block Eric S Fraga
2017-11-27 17:48 ` Berry, Charles
2017-11-28  7:54   ` Eric S Fraga
2017-11-28 17:20     ` Berry, Charles
2017-11-28 23:00     ` Nicolas Goaziou
2017-11-30 14:51       ` Eric S Fraga

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