From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [PATCH] inline src block results can be removed Date: Wed, 12 Nov 2014 01:10:40 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoMSQ-0004SP-Fp for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 20:10:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoMSL-00019h-1R for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 20:10:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:59230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoMSK-00019T-Qg for emacs-orgmode@gnu.org; Tue, 11 Nov 2014 20:10:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XoMSI-00058L-RE for emacs-orgmode@gnu.org; Wed, 12 Nov 2014 02:10:42 +0100 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 02:10:42 +0100 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 02:10:42 +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: emacs-orgmode@gnu.org Hi Chuck, "Charles C. Berry" writes: > Inline src blocks cannot update their results --- causing some of us > heaadaches [1]. > > These patches fix that by placing the result of an inline src block in > an export snippet with a faux :back-end called 'babel'. > > So C-c C-c with point on src_R{1+2} will insert > `@@babel:3@@'. Updating the contents of the inline src block and > retyping C-c C-c will update the snippet. On export, these snippets > are rendered using the verbatim transcoder, e.g. \texttt{3} for latex > backends. > > Support for most backends is provided. > > org-babel-execute-buffer will also update such snippets. > > Please try these patches out. > > Remember to recompile the files that these patches modify or you will > get wrong results when you restart emacs. > > HTH, > > Chuck > > Footnote: [1] http://thread.gmane.org/gmane.emacs.orgmode/92481 > > p.s. If these patchesa are (eventually) acceptable, FSF has a > copyright assignment for me on file. First of all: Thanks a lot! I'll (try to find time to) test these patches. Reading your description, I already have a first further feature request, though ;-) Or rather a question. It sounds as if your patches turn inline source into limited source blocks in terms of adherence to header arguments. Given that most likely there are not too many header arguments on inline source blocks, this might not be a huge problem. But my first question would be about ':results raw', as I never had a case where I wanted the results of my inline source block to be \texttt{}. I guess, my question is: Do your patches restrict the use of babel headers on inline source blocks. And if so, is that just a matter of 'not implemented yet' or is there a fundamental issue here? Thanks, Andreas