From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [BUG] Unmatched #+end-src Date: Sun, 13 Mar 2011 07:49:36 -0600 Message-ID: <87ipvnyvtb.fsf@gmail.com> References: <87ei6cffbw.fsf@btinternet.com> <87bp1gw1a4.fsf@gmail.com> <87d3lwkq1v.fsf@btinternet.com> <877hc3x3md.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35685 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pylg3-0000Vh-7K for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 09:49:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pylg0-0003AW-O8 for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 09:49:46 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:58301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pylg0-0003AL-JW for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 09:49:44 -0400 Received: by pxi2 with SMTP id 2so1097484pxi.38 for ; Sun, 13 Mar 2011 06:49:43 -0700 (PDT) In-Reply-To: <877hc3x3md.fsf@gmail.com> (Nicolas's message of "Sun, 13 Mar 2011 01:31:38 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org > > The real problem is: how should Org react when parsing syntactically > erroneous buffers? I concede that freezing Emacs isn't nice, but otoh, > code can't deal with every possible user error. > > So, what is the expected behavior here? Consider orphan #+end_ as > normal text, throw an error, or both? An answer to this question would > be more useful than code, honestly. > This is just opinion and gut reaction, but my first instinct is to say that Org just treat an orphan #+end_ as normal text (or technically as an Org-mode comment). The same is true for a floating #+begin_src. Until the block is closed, it is just a comment. Just opinions, Best -- Eric