emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Albert Krewinkel <albert@zeitkraut.de>
To: emacs-orgmode@gnu.org
Subject: Question on nested-blocks syntax
Date: Fri, 06 May 2016 11:20:16 +0200	[thread overview]
Message-ID: <87bn4j8rvz.fsf@espresso.zeitkraut.de> (raw)

Hi list,

I was wondering about the current block syntax, specifically about
nested blocks.  The current way to get nested blocks requires escaping
of the nested block commands, e.g.

#+BEGIN_EXAMPLE
  ,#+BEGIN_EXAMPLE
    Meta-example
  ,#+END_EXAMPLE
#+END_EXAMPLE

My personal feeling is that it would be nicer to allow nesting blocks
simply by indenting them:

#+BEGIN_EXAMPLE
  #+BEGIN_EXAMPLE
    Indented meta-example
  #+END_EXAMPLE
#+END_EXAMPLE

I'd be very interested to learn if this (IMHO nicer) second option could
be supported or if there are æsthetical or technical reasons for not
supporting that syntax?

I'm the author of pandoc's org-mode reader and we initially supported
the latter syntax as it felt cleaner.  Since we are striving for maximum
comparability with Emacs as the reference implementation, this specific
feature has since been removed from the reader.

Is there any chance that indentation-based nesting will become legit
org-mode syntax?

Thanks,

Albert


-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124

             reply	other threads:[~2016-05-06  9:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-06  9:20 Albert Krewinkel [this message]
2016-05-06 10:06 ` Question on nested-blocks syntax Nicolas Goaziou
2016-05-06 10:27   ` Albert Krewinkel
2016-05-06 12:01     ` Nicolas Goaziou
2016-05-07 18:09       ` Rasmus
2016-05-08 13:52         ` Nicolas Goaziou
2016-05-08 21:22           ` Rasmus

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=87bn4j8rvz.fsf@espresso.zeitkraut.de \
    --to=albert@zeitkraut.de \
    --cc=emacs-orgmode@gnu.org \
    /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).