From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Ruby babel src block does not run some code Date: Mon, 11 Apr 2016 10:34:20 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113dd1fe86df1f05302c63a7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apRgi-0001j3-0R for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 22:34:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apRgg-00036p-Ty for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 22:34:51 -0400 Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]:35331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apRgg-00036k-OA for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 22:34:50 -0400 Received: by mail-yw0-x22f.google.com with SMTP id i84so186936537ywc.2 for ; Sun, 10 Apr 2016 19:34:50 -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" To: Org-mode --001a113dd1fe86df1f05302c63a7 Content-Type: text/plain; charset=UTF-8 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] 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/ --001a113dd1fe86df1f05302c63a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For example, I have a ruby src block like this:<= /div>

```
#+BEGIN_= SRC ruby
=C2=A0 module A
=C2=A0 =C2=A0 CREF =3D "*** CREF = in module A"
=C2=A0 end=C2=A0

=C2=A0 module A<= /font>
=C2=A0 =C2=A0 module B
=C2=A0 =C2=A0 =C2=A0 puts CREF
=C2= =A0 =C2=A0 end
=C2=A0 end
#+END_SRC
```

And press `[C-c C-c]` to execute, get thi= s error:
```
#+BEGIN_EXAMPLE
-:3: module definition in method body
-:4: dynamic constant assign= ment
=C2=A0 CREF =3D "*** CREF in module A"
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 ^
-:7: module definition in method body<= /div>
-= :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]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 G= PG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC = CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
--001a113dd1fe86df1f05302c63a7--