From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martyn Jago Subject: Re: [ANN] ASCII back-end for new export engine Date: Sun, 22 Jan 2012 16:43:06 +0000 Message-ID: References: <87pqec4xua.fsf@gmail.com> <87zkdf3fnc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp0Ve-0001hO-VT for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 11:43:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rp0Vc-0008Kr-6E for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 11:43:14 -0500 Received: from smarthost01.mail.zen.net.uk ([212.23.3.140]:38377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp0Vc-0008IA-1j for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 11:43:12 -0500 In-Reply-To: <87zkdf3fnc.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 22 Jan 2012 16:45:11 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas Goaziou writes: [...] >> 1) The commented out `# :exports both' appears to be exported as >> uncommented and relevant (actually, this appears to be true of the >> original exporter too). > > I cannot reproduce it. Anyway, see my comments below. > >> 2) If the source block is executed in buffer with (org-ctrl-c-ctrl-c), >> as shown above, then the exporter appears to export the in-buffer >> results /and/ the export-generated results (where :exports is results >> or both) resulting in two sets of identical results in the export. > > It's out of exporter's scope. When you ask to export some buffer, what > is really parsed is a copy of the current buffer with > `org-export-blocks-preprocess' applied to it. > > So, simply apply that function in your test buffer, and you will see > what is sent to the parser. That will explain why the results appear > twice. > > In other words, tweaking the output of `org-export-blocks-preprocess' > will automatically change the outcome of the export process. Ah yes, I see - thanks for the clear explanation. Best, Martyn