emacs-orgmode@gnu.org archives
 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

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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).