From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Possible to use src block to generate org headlines for export? Date: Wed, 23 Jul 2014 12:07:34 -0500 Message-ID: <87mwc00zs9.fsf@fastmail.fm> References: <87zjg1gddd.fsf@fastmail.fm> <87wqb4amqb.fsf@gmail.com> <8738dshkdw.fsf@fastmail.fm> <8761io2jnz.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XA00z-0003lq-Mc for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 13:07:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XA00u-0002Wh-7v for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 13:07:41 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:53060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XA00u-0002WV-2m for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 13:07:36 -0400 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A47CD22C5C for ; Wed, 23 Jul 2014 13:07:35 -0400 (EDT) In-Reply-To: (Charles Berry's message of "Wed, 23 Jul 2014 16:06:20 +0000 (UTC)") 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: Charles Berry Cc: emacs-orgmode@gnu.org Charles Berry writes: > Matt Lundin imapmail.org> writes: > > Or wrap the results in a drawer when you type C-c C-c, but render them as > raw on export (which removes the drawer and replaces with raw results). > > Like so: > > #+header: :results (if (boundp 'backend) "raw" "drawer") > #+BEGIN_SRC emacs-lisp :exports both > > (format "* headline\n1\n2\n5\n") > #+END_SRC Thanks so much! I'm clipping this for reference. This is very helpful when one wants to preview the results in the buffer. Best, Matt