From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] [bug] inline src_R breaks downstream src block Date: Mon, 22 Aug 2011 14:08:50 -0600 Message-ID: <877h656wfh.fsf@gmail.com> References: <87ty9d3tj5.fsf@gnu.org> <87pqjya9yw.fsf@gmail.com> <87ei0ea5ab.fsf@gmail.com> <87fwktmd5r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvao7-0001Se-QM for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 16:09:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qvao3-0007Se-AJ for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 16:09:15 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:34115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvao3-0007Rp-47 for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 16:09:11 -0400 Received: by yib2 with SMTP id 2so4041185yib.0 for ; Mon, 22 Aug 2011 13:08:54 -0700 (PDT) In-Reply-To: <87fwktmd5r.fsf@gmail.com> (rasmus@gmx.us's message of "Mon, 22 Aug 2011 21:58:24 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Rasmus writes: > "Charles C. Berry" 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 --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=something.org #+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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Perhaps the problem is specific to your system? Cheers -- Eric > > =E2=80=94Rasmus --=20 Eric Schulte http://cs.unm.edu/~eschulte/ --=-=-=--