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 10:31:44 +0200 Message-ID: <87ppgtltzj.fsf@nicolasgoaziou.fr> References: <87zjg1gddd.fsf@fastmail.fm> <87wqb4amqb.fsf@gmail.com> <8738dshkdw.fsf@fastmail.fm> <8761io2jnz.fsf@fastmail.fm> <87ha27a5ip.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAauH-00061J-Ly for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 04:31:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAau9-0003sg-N1 for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 04:31:13 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:37721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAau9-0003rQ-HK for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 04:31:05 -0400 In-Reply-To: (Andreas Leha's message of "Thu, 24 Jul 2014 11:21:51 +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 Hello, Andreas Leha writes: > Is that a valid feature request: > Allow the combination of :results raw and :results replace -- regardless > of the produced content? > > IIUC the parser does not allow this right now. But (without any > knowledge on the parser) I can imagine > 'special' results drawers that do not have any function/effect other than > delimiting babel results (plus possibly folding). > If these existed, I would even enable them by default no matter of 'raw' > or not. No matter how special the results drawer is, it cannot (and shouldn't) contain headlines. There are a few options to mark raw output even with headlines: 1. Use text properties to mark the part of the buffer generated by a given source block. The main drawback is that Org is not just plain text anymore (some information is hidden and cannot be found just looking at the text). 2. Use comment cookies around the area: # Raw Babel Output : src-name (begin) * Some headline # Raw Babel Output : src-name (end) This is not very pretty. Also, it may be difficult to handle overlapping changes around the same region. OTOH, headlines are the only limitation to raw+replace behaviour. Some decent workarounds to this problem were offered in this thread. We can also live with it. Regards, -- Nicolas Goaziou