From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: org-mode interprets * as a headline in text between #+BEGIN_.. and #+END_... Date: Fri, 07 Oct 2016 11:36:37 -0400 Message-ID: <87wphkqigq.fsf@gmail.com> References: <874m4prv4x.fsf@gmail.com> <87y420lmgr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsXD0-0003MP-MM for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 11:37:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsXCu-0007yh-NL for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 11:37:13 -0400 Received: from [195.159.176.226] (port=48072 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsXCu-0007vd-Gz for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 11:37:08 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsXCa-0008Lm-S9 for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 17:36:48 +0200 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" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > >> Is the "* on column 0 is a headline" convention a consequence of the >> dependence on outline.el? Or is it just historical baggage? I cannot >> remember the grammar rules, but I'm wondering if the parser could be >> made to say "not a headline" in this situation, and if so, what the >> consequences might be (particularly, the bad consequences). >> >> I'm not sure whether Nicolas has actually explained this situation in >> the past, but, with gmane non compos mentis, I did not attempt to find >> an earlier discussion. > > This is inherent on how the syntax is defined, and how the parser is > implemented. As an outliner, the main syntactic element in an Org > document is the headline. Everything else has a lower priority. > Therefore, a block will not be parsed before a headline. > > The good side of headlines being top level elements is that parsing > (without cache) only needs to start from the closest headline above. If > blocks could be parsed before headlines, parsing should start from the > beginning of the document every time. > Thank you. I appreciate both your patience and your explanations. -- Nick