From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Can special blocks be nested? Date: Thu, 27 Nov 2014 10:24:06 +0100 Message-ID: <878uixhu89.fsf@gmx.us> References: <87h9xljd1m.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtvJI-0001tb-C5 for emacs-orgmode@gnu.org; Thu, 27 Nov 2014 04:24:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtvJC-0007qs-VW for emacs-orgmode@gnu.org; Thu, 27 Nov 2014 04:24:24 -0500 Received: from plane.gmane.org ([80.91.229.3]:60575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtvJC-0007qo-OV for emacs-orgmode@gnu.org; Thu, 27 Nov 2014 04:24:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XtvJA-0002Q1-JZ for emacs-orgmode@gnu.org; Thu, 27 Nov 2014 10:24:16 +0100 Received: from 168.96.135.37.dynamic.jazztel.es ([37.135.96.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Nov 2014 10:24:16 +0100 Received: from rasmus by 168.96.135.37.dynamic.jazztel.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Nov 2014 10:24:16 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I'm not an expert, so what I write could be wrong. Marcin Borkowski writes: > this seems to work when exporting: > > #+BEGIN_BLOCK1 > Lorem ipsum > #+BEGIN_BLOCK2 > dolor sit amet > #+END_BLOCK2 > > #+END_BLOCK1 > > but font locking does not (the inner block begin/end markers are not > colorized properly). > > Is this construction legal? May I depend on it being exported > correctly, or is it just an undefined behavior or something like that? The one you quote is fine. This one is not: #+BEGIN_BLOCK1 Lorem ipsum #+BEGIN_BLOCK1 dolor sit amet #+END_BLOCK1 #+END_BLOCK1 See the Org syntax for further details. In particular: > * Greater Elements > [...] Unless specified otherwise, greater elements can contain directly any other element or greater element excepted: > - elements of their own type, > - [...] http://orgmode.org/worg/dev/org-syntax.html —Rasmus -- C is for Cookie