all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [babel] [bug] inline src_R breaks downstream src block
@ 2011-08-09  4:00 Charles C. Berry
  2011-08-19 22:50 ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Charles C. Berry @ 2011-08-09  4:00 UTC (permalink / raw)
  To: emacs-orgmode


,----
| 
| * inline code block example
| 
| 
| AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
| blah blah src_R[:results output]{cat(rnorm(2))}
| CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
| #+begin_src R :eval never :exports none
| 1+2
| a <- b + c
| xyz
| #+end_src
| DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
`----


When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.

When I run C-c C-e L y, I get a buffer that ends like this:

----
| AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
| blah blah  \texttt{-1.172165 -0.5324113}
| CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
| \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
| 
| \end{document}
`----

More complicated examples exhibit other problems, I speculate that
parsing the inline src_R and setting up to find the next 
#+begin_src...#+end_src instance is what has gone wrong.

FWIW, changing the :exports header to 'code' seems to give correct
results

Also, placing a dummy example like this:

,----
| #+begin_example
| #+end_example
`----

after the  src_R line produces correct results.

Chuck


Charles C. Berry                            Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu			    UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-09  4:00 [babel] [bug] inline src_R breaks downstream src block Charles C. Berry
@ 2011-08-19 22:50 ` Bastien
  2011-08-21 18:35   ` Eric Schulte
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2011-08-19 22:50 UTC (permalink / raw)
  To: Charles C. Berry; +Cc: emacs-orgmode

Hi Charles,

yes, there are some problems with parsing inline source blocks.  
Stephen also reported that these colon lines

  : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
  : and $\beta_3$ = src_R{round(out3$coef[4], 4)}

where not exporting correctly... Eric, can you have a look at
these problems?

Thanks!

"Charles C. Berry" <ccberry@ucsd.edu> writes:

> ,----
> | | * inline code block example
> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> | blah blah src_R[:results output]{cat(rnorm(2))}
> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
> | #+begin_src R :eval never :exports none
> | 1+2
> | a <- b + c
> | xyz
> | #+end_src
> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
> `----
>
>
> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>
> When I run C-c C-e L y, I get a buffer that ends like this:
>
> ----
> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> | blah blah  \texttt{-1.172165 -0.5324113}
> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
> | | \end{document}
> `----
>
> More complicated examples exhibit other problems, I speculate that
> parsing the inline src_R and setting up to find the next
> #+begin_src...#+end_src instance is what has gone wrong.
>
> FWIW, changing the :exports header to 'code' seems to give correct
> results
>
> Also, placing a dummy example like this:
>
> ,----
> | #+begin_example
> | #+end_example
> `----
>
> after the  src_R line produces correct results.
>
> Chuck
>
>
> Charles C. Berry                            Dept of Family/Preventive Medicine
> cberry@tajo.ucsd.edu			    UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>
>
>

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-19 22:50 ` Bastien
@ 2011-08-21 18:35   ` Eric Schulte
  2011-08-21 20:17     ` Eric Schulte
  2011-08-23 16:27     ` Bastien
  0 siblings, 2 replies; 11+ messages in thread
From: Eric Schulte @ 2011-08-21 18:35 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Charles C. Berry

Bastien <bzg@altern.org> writes:

> Hi Charles,
>
> yes, there are some problems with parsing inline source blocks.  
> Stephen also reported that these colon lines
>
>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>
> where not exporting correctly... Eric, can you have a look at
> these problems?
>
> Thanks!
>

It will probably be a couple of days before I have sufficient time to
address these issues, but rest assured it is only my TODO list.

Thanks -- Eric

>
> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>
>> ,----
>> | | * inline code block example
>> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>> | blah blah src_R[:results output]{cat(rnorm(2))}
>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>> | #+begin_src R :eval never :exports none
>> | 1+2
>> | a <- b + c
>> | xyz
>> | #+end_src
>> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>> `----
>>
>>
>> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>>
>> When I run C-c C-e L y, I get a buffer that ends like this:
>>
>> ----
>> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>> | blah blah  \texttt{-1.172165 -0.5324113}
>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
>> | | \end{document}
>> `----
>>
>> More complicated examples exhibit other problems, I speculate that
>> parsing the inline src_R and setting up to find the next
>> #+begin_src...#+end_src instance is what has gone wrong.
>>
>> FWIW, changing the :exports header to 'code' seems to give correct
>> results
>>
>> Also, placing a dummy example like this:
>>
>> ,----
>> | #+begin_example
>> | #+end_example
>> `----
>>
>> after the  src_R line produces correct results.
>>
>> Chuck
>>
>>
>> Charles C. Berry                            Dept of Family/Preventive Medicine
>> cberry@tajo.ucsd.edu			    UC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>
>>
>>
>>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-21 18:35   ` Eric Schulte
@ 2011-08-21 20:17     ` Eric Schulte
  2011-08-21 20:25       ` Eric Schulte
  2011-08-22  3:19       ` Charles C. Berry
  2011-08-23 16:27     ` Bastien
  1 sibling, 2 replies; 11+ messages in thread
From: Eric Schulte @ 2011-08-21 20:17 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Charles C. Berry

I've just pushed up a change to org-exp-blocks which should fix Charles'
original problem related to conflict between inline and regular code
blocks.  Please let me know if this problem persists in the latest git
HEAD.

Thanks -- Eric

Eric Schulte <schulte.eric@gmail.com> writes:

> Bastien <bzg@altern.org> writes:
>
>> Hi Charles,
>>
>> yes, there are some problems with parsing inline source blocks.  
>> Stephen also reported that these colon lines
>>
>>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>>
>> where not exporting correctly... Eric, can you have a look at
>> these problems?
>>
>> Thanks!
>>
>
> It will probably be a couple of days before I have sufficient time to
> address these issues, but rest assured it is only my TODO list.
>
> Thanks -- Eric
>
>>
>> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>>
>>> ,----
>>> | | * inline code block example
>>> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>> | blah blah src_R[:results output]{cat(rnorm(2))}
>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>> | #+begin_src R :eval never :exports none
>>> | 1+2
>>> | a <- b + c
>>> | xyz
>>> | #+end_src
>>> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>>> `----
>>>
>>>
>>> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>>>
>>> When I run C-c C-e L y, I get a buffer that ends like this:
>>>
>>> ----
>>> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>> | blah blah  \texttt{-1.172165 -0.5324113}
>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
>>> | | \end{document}
>>> `----
>>>
>>> More complicated examples exhibit other problems, I speculate that
>>> parsing the inline src_R and setting up to find the next
>>> #+begin_src...#+end_src instance is what has gone wrong.
>>>
>>> FWIW, changing the :exports header to 'code' seems to give correct
>>> results
>>>
>>> Also, placing a dummy example like this:
>>>
>>> ,----
>>> | #+begin_example
>>> | #+end_example
>>> `----
>>>
>>> after the  src_R line produces correct results.
>>>
>>> Chuck
>>>
>>>
>>> Charles C. Berry                            Dept of Family/Preventive Medicine
>>> cberry@tajo.ucsd.edu			    UC San Diego
>>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>>
>>>
>>>
>>>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-21 20:17     ` Eric Schulte
@ 2011-08-21 20:25       ` Eric Schulte
  2011-08-22  3:19       ` Charles C. Berry
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Schulte @ 2011-08-21 20:25 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Charles C. Berry

Eric Schulte <schulte.eric@gmail.com> writes:

> I've just pushed up a change to org-exp-blocks which should fix Charles'
> original problem related to conflict between inline and regular code
> blocks.  Please let me know if this problem persists in the latest git
> HEAD.
>
> Thanks -- Eric
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Bastien <bzg@altern.org> writes:
>>
>>> Hi Charles,
>>>
>>> yes, there are some problems with parsing inline source blocks.  
>>> Stephen also reported that these colon lines
>>>
>>>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>>>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>>>

Inline source blocks like those above should now also be exporting as
expected.

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-21 20:17     ` Eric Schulte
  2011-08-21 20:25       ` Eric Schulte
@ 2011-08-22  3:19       ` Charles C. Berry
  2011-08-22 14:25         ` Eric Schulte
  2011-08-22 19:58         ` Rasmus
  1 sibling, 2 replies; 11+ messages in thread
From: Charles C. Berry @ 2011-08-22  3:19 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Bastien, emacs-orgmode

On Sun, 21 Aug 2011, Eric Schulte wrote:

> I've just pushed up a change to org-exp-blocks which should fix Charles'
> original problem related to conflict between inline and regular code
> blocks.  Please let me know if this problem persists in the latest git
> HEAD.

Just updated to

Org-mode version 7.7 (release_7.7.167.gfceb.dirty)

And I get

[...]
Code block evaluation complete.
if: Args out of range: -1, -1

after typing C-c C-e A RET y

:-(

Chuck

>
> Thanks -- Eric
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Bastien <bzg@altern.org> writes:
>>
>>> Hi Charles,
>>>
>>> yes, there are some problems with parsing inline source blocks.
>>> Stephen also reported that these colon lines
>>>
>>>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>>>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>>>
>>> where not exporting correctly... Eric, can you have a look at
>>> these problems?
>>>
>>> Thanks!
>>>
>>
>> It will probably be a couple of days before I have sufficient time to
>> address these issues, but rest assured it is only my TODO list.
>>
>> Thanks -- Eric
>>
>>>
>>> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>>>
>>>> ,----
>>>> | | * inline code block example
>>>> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>> | blah blah src_R[:results output]{cat(rnorm(2))}
>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>> | #+begin_src R :eval never :exports none
>>>> | 1+2
>>>> | a <- b + c
>>>> | xyz
>>>> | #+end_src
>>>> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>> `----
>>>>
>>>>
>>>> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>>>>
>>>> When I run C-c C-e L y, I get a buffer that ends like this:
>>>>
>>>> ----
>>>> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>> | blah blah  \texttt{-1.172165 -0.5324113}
>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>> | | \end{document}
>>>> `----
>>>>
>>>> More complicated examples exhibit other problems, I speculate that
>>>> parsing the inline src_R and setting up to find the next
>>>> #+begin_src...#+end_src instance is what has gone wrong.
>>>>
>>>> FWIW, changing the :exports header to 'code' seems to give correct
>>>> results
>>>>
>>>> Also, placing a dummy example like this:
>>>>
>>>> ,----
>>>> | #+begin_example
>>>> | #+end_example
>>>> `----
>>>>
>>>> after the  src_R line produces correct results.
>>>>
>>>> Chuck
>>>>
>>>>
>>>> Charles C. Berry                            Dept of Family/Preventive Medicine
>>>> cberry@tajo.ucsd.edu			    UC San Diego
>>>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>>>
>>>>
>>>>
>>>>
>
> -- 
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>

Charles C. Berry                            Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu			    UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-22  3:19       ` Charles C. Berry
@ 2011-08-22 14:25         ` Eric Schulte
  2011-08-22 17:32           ` Charles C. Berry
  2011-08-22 19:58         ` Rasmus
  1 sibling, 1 reply; 11+ messages in thread
From: Eric Schulte @ 2011-08-22 14:25 UTC (permalink / raw)
  To: Charles C. Berry; +Cc: Bastien, emacs-orgmode

Hi Chuck,

I just pushed up another fix, after which your example exports cleanly
on my system.  Please give this another try and let me know if it is now
working for you as well.

Thanks -- Eric

"Charles C. Berry" <ccberry@ucsd.edu> writes:

> On Sun, 21 Aug 2011, Eric Schulte wrote:
>
>> I've just pushed up a change to org-exp-blocks which should fix Charles'
>> original problem related to conflict between inline and regular code
>> blocks.  Please let me know if this problem persists in the latest git
>> HEAD.
>
> Just updated to
>
> Org-mode version 7.7 (release_7.7.167.gfceb.dirty)
>
> And I get
>
> [...]
> Code block evaluation complete.
> if: Args out of range: -1, -1
>
> after typing C-c C-e A RET y
>
> :-(
>
> Chuck
>
>>
>> Thanks -- Eric
>>
>> Eric Schulte <schulte.eric@gmail.com> writes:
>>
>>> Bastien <bzg@altern.org> writes:
>>>
>>>> Hi Charles,
>>>>
>>>> yes, there are some problems with parsing inline source blocks.
>>>> Stephen also reported that these colon lines
>>>>
>>>>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>>>>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>>>>
>>>> where not exporting correctly... Eric, can you have a look at
>>>> these problems?
>>>>
>>>> Thanks!
>>>>
>>>
>>> It will probably be a couple of days before I have sufficient time to
>>> address these issues, but rest assured it is only my TODO list.
>>>
>>> Thanks -- Eric
>>>
>>>>
>>>> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>>>>
>>>>> ,----
>>>>> | | * inline code block example
>>>>> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>>> | blah blah src_R[:results output]{cat(rnorm(2))}
>>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>>> | #+begin_src R :eval never :exports none
>>>>> | 1+2
>>>>> | a <- b + c
>>>>> | xyz
>>>>> | #+end_src
>>>>> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>>> `----
>>>>>
>>>>>
>>>>> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>>>>>
>>>>> When I run C-c C-e L y, I get a buffer that ends like this:
>>>>>
>>>>> ----
>>>>> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>>> | blah blah  \texttt{-1.172165 -0.5324113}
>>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>>> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>>> | | \end{document}
>>>>> `----
>>>>>
>>>>> More complicated examples exhibit other problems, I speculate that
>>>>> parsing the inline src_R and setting up to find the next
>>>>> #+begin_src...#+end_src instance is what has gone wrong.
>>>>>
>>>>> FWIW, changing the :exports header to 'code' seems to give correct
>>>>> results
>>>>>
>>>>> Also, placing a dummy example like this:
>>>>>
>>>>> ,----
>>>>> | #+begin_example
>>>>> | #+end_example
>>>>> `----
>>>>>
>>>>> after the  src_R line produces correct results.
>>>>>
>>>>> Chuck
>>>>>
>>>>>
>>>>> Charles C. Berry                            Dept of Family/Preventive Medicine
>>>>> cberry@tajo.ucsd.edu			    UC San Diego
>>>>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>>>>
>>>>>
>>>>>
>>>>>
>>
>> -- 
>> Eric Schulte
>> http://cs.unm.edu/~eschulte/
>>
>
> Charles C. Berry                            Dept of Family/Preventive Medicine
> cberry@tajo.ucsd.edu			    UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-22 14:25         ` Eric Schulte
@ 2011-08-22 17:32           ` Charles C. Berry
  0 siblings, 0 replies; 11+ messages in thread
From: Charles C. Berry @ 2011-08-22 17:32 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Bastien, emacs-orgmode

On Mon, 22 Aug 2011, Eric Schulte wrote:

> Hi Chuck,
>
> I just pushed up another fix, after which your example exports cleanly
> on my system.  Please give this another try and let me know if it is now
> working for you as well.

Org-mode version 7.7 (release_7.7.170.gcaaad.dirty) works fine on the 
example.

Thanks,

Chuck

>
> Thanks -- Eric
>
> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>
>> On Sun, 21 Aug 2011, Eric Schulte wrote:
>>
>>> I've just pushed up a change to org-exp-blocks which should fix Charles'
>>> original problem related to conflict between inline and regular code
>>> blocks.  Please let me know if this problem persists in the latest git
>>> HEAD.
>>
>> Just updated to
>>
>> Org-mode version 7.7 (release_7.7.167.gfceb.dirty)
>>
>> And I get
>>
>> [...]
>> Code block evaluation complete.
>> if: Args out of range: -1, -1
>>
>> after typing C-c C-e A RET y
>>
>> :-(
>>
>> Chuck
>>
>>>
>>> Thanks -- Eric
>>>
>>> Eric Schulte <schulte.eric@gmail.com> writes:
>>>
>>>> Bastien <bzg@altern.org> writes:
>>>>
>>>>> Hi Charles,
>>>>>
>>>>> yes, there are some problems with parsing inline source blocks.
>>>>> Stephen also reported that these colon lines
>>>>>
>>>>>   : were $\beta_2$ = src_R{round(out3$coef[3], 4)}
>>>>>   : and $\beta_3$ = src_R{round(out3$coef[4], 4)}
>>>>>
>>>>> where not exporting correctly... Eric, can you have a look at
>>>>> these problems?
>>>>>
>>>>> Thanks!
>>>>>
>>>>
>>>> It will probably be a couple of days before I have sufficient time to
>>>> address these issues, but rest assured it is only my TODO list.
>>>>
>>>> Thanks -- Eric
>>>>
>>>>>
>>>>> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>>>>>
>>>>>> ,----
>>>>>> | | * inline code block example
>>>>>> | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>>>> | blah blah src_R[:results output]{cat(rnorm(2))}
>>>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>>>> | #+begin_src R :eval never :exports none
>>>>>> | 1+2
>>>>>> | a <- b + c
>>>>>> | xyz
>>>>>> | #+end_src
>>>>>> | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>>>> `----
>>>>>>
>>>>>>
>>>>>> When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line.
>>>>>>
>>>>>> When I run C-c C-e L y, I get a buffer that ends like this:
>>>>>>
>>>>>> ----
>>>>>> | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>>>>> | blah blah  \texttt{-1.172165 -0.5324113}
>>>>>> | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>>>>>> | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD
>>>>>> | | \end{document}
>>>>>> `----
>>>>>>
>>>>>> More complicated examples exhibit other problems, I speculate that
>>>>>> parsing the inline src_R and setting up to find the next
>>>>>> #+begin_src...#+end_src instance is what has gone wrong.
>>>>>>
>>>>>> FWIW, changing the :exports header to 'code' seems to give correct
>>>>>> results
>>>>>>
>>>>>> Also, placing a dummy example like this:
>>>>>>
>>>>>> ,----
>>>>>> | #+begin_example
>>>>>> | #+end_example
>>>>>> `----
>>>>>>
>>>>>> after the  src_R line produces correct results.
>>>>>>
>>>>>> Chuck
>>>>>>
>>>>>>
>>>>>> Charles C. Berry                            Dept of Family/Preventive Medicine
>>>>>> cberry@tajo.ucsd.edu			    UC San Diego
>>>>>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>
>>> --
>>> Eric Schulte
>>> http://cs.unm.edu/~eschulte/
>>>
>>
>> Charles C. Berry                            Dept of Family/Preventive Medicine
>> cberry@tajo.ucsd.edu			    UC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>
>>
>
> -- 
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>

Charles C. Berry                            Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu			    UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-22  3:19       ` Charles C. Berry
  2011-08-22 14:25         ` Eric Schulte
@ 2011-08-22 19:58         ` Rasmus
  2011-08-22 20:08           ` Eric Schulte
  1 sibling, 1 reply; 11+ messages in thread
From: Rasmus @ 2011-08-22 19:58 UTC (permalink / raw)
  To: emacs-orgmode

"Charles C. Berry" <ccberry@ucsd.edu> writes:

> And I get
>
> [...]
> Code block evaluation complete.
> if: Args out of range: -1, -1

I have updated to latest Emacs bzr and org-git. Starting emacs with the
-q flag and trying the simple example src_R{1+1} I get the above error
when I use org-babel-exp-inline-src-blocks. Eval via C-c C-c works as
expected but when I export it halts due to
org-babel-exp-inline-src-blocks errors.

—Rasmus

-- 
Sent from my Emacs

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-22 19:58         ` Rasmus
@ 2011-08-22 20:08           ` Eric Schulte
  0 siblings, 0 replies; 11+ messages in thread
From: Eric Schulte @ 2011-08-22 20:08 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

Rasmus <rasmus@gmx.us> writes:

> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>
>> And I get
>>
>> [...]
>> Code block evaluation complete.
>> if: Args out of range: -1, -1
>
> I have updated to latest Emacs bzr and org-git. Starting emacs with the
> -q flag and trying the simple example src_R{1+1} I get the above error
> when I use org-babel-exp-inline-src-blocks. Eval via C-c C-c works as
> expected but when I export it halts due to
> org-babel-exp-inline-src-blocks errors.
>

I just tried the following with the latest Org-mode...

1. emacs -Q
2. evaluated the following elisp
   #+begin_src emacs-lisp
     (add-to-list 'load-path "~/.emacs.d/src/org/lisp")
     (load-file "~/.emacs.d/src/org/lisp/org-install.el")
     (load-file "~/.emacs.d/src/org/lisp/ob-sh.el")
   #+end_src
3. exported the attached file to both html and ASCII, and everything
   worked as expected

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: something.org --]
[-- Type: text/x-org, Size: 418 bytes --]

#+Title: something
#+OPTIONS: num:nil ^:nil

* inline code block example
Here is one src_sh{echo eric} and another src_sh{echo schulte} and
maybe even on more src_sh{echo patton}.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
blah blah src_R[:results output]{cat(rnorm(2))}
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
#+begin_src R :eval never :exports none
1+2
a <- b + c
xyz
#+end_src
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]


Perhaps the problem is specific to your system?

Cheers -- Eric

>
> —Rasmus

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [babel] [bug] inline src_R breaks downstream src block
  2011-08-21 18:35   ` Eric Schulte
  2011-08-21 20:17     ` Eric Schulte
@ 2011-08-23 16:27     ` Bastien
  1 sibling, 0 replies; 11+ messages in thread
From: Bastien @ 2011-08-23 16:27 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode, Charles C. Berry

Eric Schulte <schulte.eric@gmail.com> writes:

> It will probably be a couple of days before I have sufficient time to
> address these issues, but rest assured it is only my TODO list.

Thanks for your persistence in fixing this!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-08-23 16:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09  4:00 [babel] [bug] inline src_R breaks downstream src block Charles C. Berry
2011-08-19 22:50 ` Bastien
2011-08-21 18:35   ` Eric Schulte
2011-08-21 20:17     ` Eric Schulte
2011-08-21 20:25       ` Eric Schulte
2011-08-22  3:19       ` Charles C. Berry
2011-08-22 14:25         ` Eric Schulte
2011-08-22 17:32           ` Charles C. Berry
2011-08-22 19:58         ` Rasmus
2011-08-22 20:08           ` Eric Schulte
2011-08-23 16:27     ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.