emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Hidden named blocks.
@ 2014-10-26 10:09 abonnements
  2014-10-26 10:19 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: abonnements @ 2014-10-26 10:09 UTC (permalink / raw)
  To: emacs-orgmode

Hello,
     I would like to know if there is, or if it is simple, to have a 
"#+STARTUP: hideblocks" like option which allow to fold named blocks 
leaving only the #+name:

Example
#+name: test
#+header: :var foo=10
#+begin_src python
...
#+end_src

is displayed on the opening of the file folded this way
#+name: test ...

instead of
#+name: test
#+header: :var foo=10
#+begin_src python ...

Ta.
Thierry

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

* Re: Hidden named blocks.
  2014-10-26 10:09 Hidden named blocks abonnements
@ 2014-10-26 10:19 ` Nicolas Goaziou
  2014-10-26 10:48   ` abonnements
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-10-26 10:19 UTC (permalink / raw)
  To: abonnements; +Cc: emacs-orgmode

Hello,

abonnements <abonnements@thierry-pelle.eu> writes:

>      I would like to know if there is, or if it is simple, to have a 
> "#+STARTUP: hideblocks" like option which allow to fold named blocks 
> leaving only the #+name:
>
> Example
> #+name: test
> #+header: :var foo=10
> #+begin_src python
> ...
> #+end_src
>
> is displayed on the opening of the file folded this way
> #+name: test ...
>
> instead of
> #+name: test
> #+header: :var foo=10
> #+begin_src python ...

There is no such option. Note that order between "name" and "header" may
be reversed, which could be confusing.


Regards,

-- 
Nicolas Goaziou

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

* Re: Hidden named blocks.
  2014-10-26 10:19 ` Nicolas Goaziou
@ 2014-10-26 10:48   ` abonnements
  2014-10-26 12:42     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: abonnements @ 2014-10-26 10:48 UTC (permalink / raw)
  To: emacs-orgmode

Thanks, that's what I supposed.

But when you hit "TAB" on a "#+name: " line it fold the block to the 
"#+end_XXX".
This is not the case for a "#+header:" line.

So such a folding stuff may be easy to implement no?

Thierry

Le 26/10/2014 11:19, Nicolas Goaziou a écrit :
> Hello,
>
> abonnements <abonnements@thierry-pelle.eu> writes:
>
>>       I would like to know if there is, or if it is simple, to have a
>> "#+STARTUP: hideblocks" like option which allow to fold named blocks
>> leaving only the #+name:
>>
>> Example
>> #+name: test
>> #+header: :var foo=10
>> #+begin_src python
>> ...
>> #+end_src
>>
>> is displayed on the opening of the file folded this way
>> #+name: test ...
>>
>> instead of
>> #+name: test
>> #+header: :var foo=10
>> #+begin_src python ...
> There is no such option. Note that order between "name" and "header" may
> be reversed, which could be confusing.
>
>
> Regards,
>

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

* Re: Hidden named blocks.
  2014-10-26 10:48   ` abonnements
@ 2014-10-26 12:42     ` Nicolas Goaziou
  2014-10-26 13:01       ` abonnements
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-10-26 12:42 UTC (permalink / raw)
  To: abonnements; +Cc: emacs-orgmode

abonnements <abonnements@thierry-pelle.eu> writes:

> Thanks, that's what I supposed.
>
> But when you hit "TAB" on a "#+name: " line it fold the block to the
> "#+end_XXX".
> This is not the case for a "#+header:" line.

I think you're using an outdated Org.

> So such a folding stuff may be easy to implement no?

As I wrote already, it would be confusing. The current behaviour (in
a recent Org) makes more sense.


Regards,

-- 
Nicolas Goaziou

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

* Re: Hidden named blocks.
  2014-10-26 12:42     ` Nicolas Goaziou
@ 2014-10-26 13:01       ` abonnements
  2014-10-26 13:06         ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: abonnements @ 2014-10-26 13:01 UTC (permalink / raw)
  To: emacs-orgmode

When I write my first post i was using version 8.2.7c.

The behaviour of TAB on an #+name: ligne is the same with 8.2.10 
(installed with package-install from elpa)...

Sorry but can you explain me the normal behavour of TAB.
Thanks.

Le 26/10/2014 13:42, Nicolas Goaziou a écrit :
> abonnements <abonnements@thierry-pelle.eu> writes:
>
>> Thanks, that's what I supposed.
>>
>> But when you hit "TAB" on a "#+name: " line it fold the block to the
>> "#+end_XXX".
>> This is not the case for a "#+header:" line.
> I think you're using an outdated Org.
>
>> So such a folding stuff may be easy to implement no?
> As I wrote already, it would be confusing. The current behaviour (in
> a recent Org) makes more sense.
>
>
> Regards,
>

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

* Re: Hidden named blocks.
  2014-10-26 13:01       ` abonnements
@ 2014-10-26 13:06         ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2014-10-26 13:06 UTC (permalink / raw)
  To: abonnements; +Cc: emacs-orgmode

abonnements <abonnements@thierry-pelle.eu> writes:

> When I write my first post i was using version 8.2.7c.
>
> The behaviour of TAB on an #+name: ligne is the same with 8.2.10
> (installed with package-install from elpa)...
>
> Sorry but can you explain me the normal behavour of TAB.
> Thanks.

  #+header: test
  #+name: test
  #+BEGIN_SRC emacs-lisp
  (+ 1 1)
  #+END_SRC

=>

  #+header: test
  #+name: test
  #+BEGIN_SRC emacs-lisp ...


and

  #+name: test
  #+header: test
  #+BEGIN_SRC emacs-lisp
  (+ 1 1)
  #+END_SRC

=>

  #+name: test
  #+header: test
  #+BEGIN_SRC emacs-lisp ...

IOW, affiliated keywords are never hidden.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-10-26 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 10:09 Hidden named blocks abonnements
2014-10-26 10:19 ` Nicolas Goaziou
2014-10-26 10:48   ` abonnements
2014-10-26 12:42     ` Nicolas Goaziou
2014-10-26 13:01       ` abonnements
2014-10-26 13:06         ` 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).