[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [BUG] on export resulting in endless evaluation
From: |
Sebastien Vauban |
Subject: |
Re: [O] [BUG] on export resulting in endless evaluation |
Date: |
Mon, 09 Feb 2015 12:00:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) |
Rainer M Krug wrote:
> Charles Berry <address@hidden> writes:
>> Rainer M Krug <Rainer <at> krugs.de> writes:
>>>
>>> when exporting the fillowing org file, I get an endless loop of
>>> evaluations.
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> #+PROPERTY: header-args :exports both
>>> #+PROPERTY: header-args+ :results output
>>> * The bug
>>> This file create an (possibly endless?) loop during export
>>> * here exports both
>>> #+begin_src R
>>> cat(13+14)
>>> #+end_src
>>>
>>> * and here only code
>>> :PROPERTIES:
>>> :header-args+: exports code
>>> :END:
>>> #+begin_src R
>>> paste(13+14)
>>> #+end_src
>>> --8<---------------cut here---------------end--------------->8---
>>
>> Add this to the end of your example and run the src block:
>>
>> #+BEGIN_SRC emacs-lisp :results pp
>> (org-entry-get (point) "header-args" t)
>> #+END_SRC
>>
>> #+RESULTS:
>> : ":exports both :results output exports code"
>
> Very useful function - I think I will use it quite often! I would have
> seen the problem immediately - the missing :
FWIW, `C-c C-v I' (or `C-c C-v C-I') would show you:
--8<---------------cut here---------------start------------->8---
Lang: R
Header Arguments:
:cache no
:exports code
:hlines no
:noweb no
:results replace
:session none
:tangle no
exports code
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban