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: Sat, 26 Jul 2014 10:07:50 +0200 Message-ID: <8738dok0fd.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> <87zjfxk1wb.fsf@nicolasgoaziou.fr> <87r419ju9z.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAx0f-00080w-PO for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 04:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAx0V-0004Tu-Ke for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 04:07:17 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:38391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAx0V-0004Tl-Eo for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 04:07:07 -0400 In-Reply-To: (Andreas Leha's message of "Sat, 26 Jul 2014 01:26:02 +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 > But in that case let me return to and refine my proposal: Why not have > "drawer" as the default unless "raw" is given? Probably because "raw" never breaks your document, and is less verbose in the simplest cases (e.g., a single list, value, table...), which may be common enough. Anyway, it should be simple enough to switch to "drawer" as a default in your setup. > One could argue, that the extent of the results is implicitly given > when the results are not "raw", but being explicit here would allow for > some additional features (such as different background for results -- is > anyone doing this? I'd be interested). "raw" doesn't prevent to add a different background, if needed. > This is the state in org This is what I'd prefer... > --8<------start-------->8--- --8<------start-------->8--- > > #+PROPERTY: results drawer #+PROPERTY: results drawer > > > * Test * Test > > #+name: dtrn #+name: dtrn > #+begin_src R :exports both #+begin_src R :exports both > > "hello" "hello" > #+end_src #+end_src > > > #+results: dtrn > :RESULTS: #+begin_results dtrn > > hello hello > :END: #+end_results > --8<-------end--------->8--- --8<-------end--------->8--- What you prefer is a special block, which is not neutral during export process. Of course, a "result" block type could be added to Org syntax, but that would be redundant with drawers. Regards, -- Nicolas Goaziou