all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "numbchild@gmail.com" <numbchild@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Ruby babel src block does not run some code
Date: Mon, 11 Apr 2016 10:34:20 +0800	[thread overview]
Message-ID: <CAL1eYuK-ZsocuTd74VfnOFziN6=mUdCDOBHDFu5ApAHK8P=Y1w@mail.gmail.com> (raw)

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

For example, I have a ruby src block like this:

```
#+BEGIN_SRC ruby
  module A
    CREF = "*** CREF in module A"
  end

  module A
    module B
      puts CREF
    end
  end
#+END_SRC
```

And press `[C-c C-c]` to execute, get this error:
```
#+BEGIN_EXAMPLE
-:3: module definition in method body
-:4: dynamic constant assignment
  CREF = "*** CREF in module A"
        ^
-:7: module definition in method body
-:8: module definition in method body
#+END_EXAMPLE
```

My emacs version: 24.5.1
My org-mode version: 8.3.4 (installed from MELPA)

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

[-- Attachment #2: Type: text/html, Size: 3647 bytes --]

                 reply	other threads:[~2016-04-11  2:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL1eYuK-ZsocuTd74VfnOFziN6=mUdCDOBHDFu5ApAHK8P=Y1w@mail.gmail.com' \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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.