From: Eric Schulte <schulte.eric@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] [bug] inline src_R breaks downstream src block
Date: Mon, 22 Aug 2011 14:08:50 -0600 [thread overview]
Message-ID: <877h656wfh.fsf@gmail.com> (raw)
In-Reply-To: <87fwktmd5r.fsf@gmail.com> (rasmus@gmx.us's message of "Mon, 22 Aug 2011 21:58:24 +0200")
[-- 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/
next prev parent reply other threads:[~2011-08-22 20:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-08-23 16:27 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877h656wfh.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).