I think you may have to use the slower and more correct version of noweb
expansion to avoid these sorts of problems.

Best,

Samuel Wales <samolog...@gmail.com> writes:

> By which I mean, the bug should be reproducible if you do so.
>
> On 2/11/14, Samuel Wales <samolog...@gmail.com> wrote:
>> Try with:
>>
>>   (setq org-babel-use-quick-and-dirty-noweb-expansion t)
>>
>> This setting is much, much faster, by the way.
>>
>> On 2/5/14, Eric Schulte <schulte.e...@gmail.com> wrote:
>>> Samuel Wales <samolog...@gmail.com> writes:
>>>
>>>> hi eric,
>>>>
>>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>>>       a
>>>> #+END_SRC
>>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref
>>>> whatever
>>>> #       b
>>>> # #+END_SRC
>>>> #+BEGIN_SRC sh :results output :noweb yes
>>>>       echo <<whatever>>
>>>> #+END_SRC
>>>>
>>>> it is a bug that babel tries to use b.
>>>>
>>>> babel tries to use COMMENT comments also.
>>>>
>>>> samuel
>>>
>>> When executing the last code block I get the expected output, namely
>>> "a".
>>>
>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>>       a
>>> #+END_SRC
>>>
>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>> #       b
>>> # #+END_SRC
>>>
>>> #+BEGIN_SRC sh :results output :noweb yes
>>>       echo <<whatever>>
>>> #+END_SRC
>>>
>>> #+RESULTS:
>>> : a
>>>
>>> Best,
>>>
>>> --
>>> Eric Schulte
>>> https://cs.unm.edu/~eschulte
>>> PGP: 0x614CA05D
>>>
>>
>>
>> --
>> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>>
>> The disease DOES progress.  MANY people have died from it.  ANYBODY can get
>> it.
>>
>> Denmark: free Karina Hansen NOW.
>>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

Reply via email to