From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Possible to use src block to generate org headlines for export? Date: Fri, 25 Jul 2014 15:23:48 +0200 Message-ID: <87zjfxk1wb.fsf@nicolasgoaziou.fr> References: <87zjg1gddd.fsf@fastmail.fm> <87wqb4amqb.fsf@gmail.com> <8738dshkdw.fsf@fastmail.fm> <8761io2jnz.fsf@fastmail.fm> <87ha27a5ip.fsf@gmail.com> <87ppgtltzj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfSw-0007V5-QW for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAfSl-0008IS-SL for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:23:18 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:53833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfSl-0008ID-M6 for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:23:07 -0400 In-Reply-To: (Andreas Leha's message of "Fri, 25 Jul 2014 14:05:35 +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: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > Nicolas Goaziou writes: >> No matter how special the results drawer is, it cannot (and shouldn't) >> contain headlines. > > You are the master of the parser... That's why I carefully avoid shooting myself in the foot. There is (at least) a good reason why only headlines can contain headlines, which is speed, as a consequence of CFG. > IIUC, you are saying that raw+replace is possible right now for any > content in the results (other than headlines), if the results are in a > drawer? If the results are in a drawer, this is not "raw" anymore, but "drawer". Anyway you can put anything in your drawer besides a headline and another drawer. > Then, my follow-up question is simply, why are drawers not the default > for results, then? Is there any drawback (apart from an additional > line)? The block may insert a headline, or another drawer, within the results drawer, thus breaking the document. Regards, -- Nicolas Goaziou