From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: [babel] [bug] inline src_R breaks downstream src block Date: Mon, 8 Aug 2011 21:00:07 -0700 Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqdUL-0007px-41 for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 00:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqdUJ-0007zm-PW for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 00:00:21 -0400 Received: from iport-c1-out.ucsd.edu ([132.239.0.176]:57309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqdUJ-0007zK-BS for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 00:00:19 -0400 Received: from tajo.ucsd.edu (tajo.ucsd.edu [137.110.122.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-tpcs.ucsd.edu (Postfix) with ESMTPSA id 29B0080DE4 for ; Mon, 8 Aug 2011 21:00:12 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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