From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Possible to use src block to generate org headlines for export? Date: Fri, 25 Jul 2014 14:05:35 +0100 Message-ID: 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]:54809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfCC-0005M7-JQ for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:06:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAfC5-0002Ed-Ln for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:06:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:48319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfC5-0002EV-Cj for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 09:05:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XAfC0-0008Ac-TS for emacs-orgmode@gnu.org; Fri, 25 Jul 2014 15:05:48 +0200 Received: from 193.63.222.28 ([193.63.222.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 15:05:48 +0200 Received: from andreas.leha by 193.63.222.28 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 15:05:48 +0200 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: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > 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. > You are the master of the parser... > 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. > 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? 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)? Regards, Andreas