[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc
From: |
Ross Donaldson |
Subject: |
Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)] |
Date: |
Wed, 16 Mar 2016 16:52:11 -0700 |
User-agent: |
mu4e 0.9.16; emacs 24.5.1 |
Nicolas --
> Isn't it the point of the "verbatim" parameter?
I didn't think so, no. Certainly, it doesn't behave this way in any other
context, nor does the documentation make me think it should.
> What did you expect instead?
I expect the results of a call block to be the same as from evaluating the
named src block directly. Why would I expect anything else?
Nicolas Goaziou writes:
> Hello,
>
> Ross Donaldson <address@hidden> writes:
>
>> When the header argument ~:results verbatim~ is set in a #+PROPERTY,
>> the results of #+CALL blocks are surrounded by full quotes:
>
> Isn't it the point of the "verbatim" parameter?
>
>> * Good
>> #+name: first-demo
>> #+BEGIN_SRC sh
>> echo 5 #+END_SRC
>>
>> #+RESULTS: first-demo
>> : 5
>> #+call: first-demo()
>>
>> #+RESULTS:
>> : 5
>>
>> * Bad
>> :PROPERTIES:
>> :header-args: :results verbatim
>> :END:
>>
>> #+name: second-demo
>> #+BEGIN_SRC sh
>> echo 5 #+END_SRC
>>
>> #+call: second-demo()
>>
>> #+RESULTS: : "5 : "
>
> What did you expect instead?
>
>> * Weird
>> #+name: third-demo
>> #+BEGIN_SRC sh :results verbatim
>> echo 5 #+END_SRC
>>
>> #+call: third-demo()
>>
>> #+RESULTS:
>> : 5
>
> Also, what did you expect? Note that :results verbatim is applied to the
> block, not to the call line.
>
>
> Regards,
--
Cheers,
Ross