[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] inline src block results can be removed
From: |
Aaron Ecay |
Subject: |
Re: [O] [PATCH] inline src block results can be removed |
Date: |
Wed, 12 Nov 2014 19:34:37 +0000 |
User-agent: |
Notmuch/0.18.1+51~gbbbdf04 (http://notmuchmail.org) Emacs/25.0.50.2 (x86_64-unknown-linux-gnu) |
Hi Chuck,
2014ko azaroak 12an, "Charles C. Berry"-ek idatzi zuen:
>
> 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.
Instead of using an export snippet, which requires per-backend changes,
you could wrap results in a macro, e.g. {{{results(2)}}}.
Users could customize this macro per-buffer (with the usual #+macro
keyword) to provide their own formatting of inline results. You
could provide the fallback interpretation in the second call to
‘org-macro-replace-all’ in ‘org-export-as’ (currently responsible
for expanding a few macros like {{{author}}} and {{{date}}}).
What do you think of this idea?
--
Aaron Ecay
- [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/11
- Re: [O] [PATCH] inline src block results can be removed, Andreas Leha, 2014/11/11
- Re: [O] [PATCH] inline src block results can be removed,
Aaron Ecay <=
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/12
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/13
- Re: [O] [PATCH] inline src block results can be removed, Andreas Leha, 2014/11/13
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Aaron Ecay, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/15
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/15
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/16
- Re: [O] [PATCH] inline src block results can be removed, Daniele Pizzolli, 2014/11/24