From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Babel Clojure example problems Date: Wed, 4 Jun 2014 23:49:02 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33c65ec1832804fb0f7678 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsPbt-0004IM-II for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 00:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsPbs-00089Q-5I for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 00:49:05 -0400 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:52612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsPbr-00088s-UW for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 00:49:04 -0400 Received: by mail-pb0-f48.google.com with SMTP id rr13so541565pbb.7 for ; Wed, 04 Jun 2014 21:49:02 -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@gnu.org --047d7b33c65ec1832804fb0f7678 Content-Type: text/plain; charset=UTF-8 I'm having trouble following the example page on babel and clojure ( http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html ). I believe I've done everything correctly, the first example works: #+begin_src clojure :results silent (+ 1 4) #+end_src but the next two. . . #+begin_src clojure :results value [ 1 2 3 4] #+end_src #+begin_src clojure :results value (def small-map {:a 2 :b 4 :c 8}) (:b small-map) #+end_src . . . bomb, causing slime/swank-looking error buffer: Package { does not exist. Line: 1, Column: 17, File-Position: 17 Stream: # [Condition of type SB-INT:SIMPLE-READER-PACKAGE-ERROR] Restarts: 0: [RETRY] Retry SLIME evaluation request. 1: [*ABORT] Return to SLIME's top level. 2: [ABORT] Abort thread (#) I've got the nREPL 0.1.8-preview running. LB --047d7b33c65ec1832804fb0f7678 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm having trouble following the example page on babel= and clojure ( http://orgmode.org/worg/org-contrib/babel/languages= /ob-doc-clojure.html ). I believe I've done everything correctly, t= he first example works:

#+begin_src clojure :results silent
=C2=A0 (+= 1 4)
#+end_src

but the next two. = . .

#+begin_src clojure :results value
<= div> =C2=A0 [ 1 2 3 4]
#+end_src

#+begin_src = clojure :results value
=C2=A0 (def small-map {:a 2 :b 4 :c 8})
=C2=A0 (:b small-map)
#+end_src

. . . bomb, causing slime/swank-looking error buffer:

Package { does not exist.

=C2=A0 Line: 1, Column: 17, File-Position: 17

=C2=A0 Stream: #<SB-IMPL::STRING-INPUT-STREAM {1006B45023}>
<= div>=C2=A0 =C2=A0[Condition of type SB-INT:SIMPLE-READER-PACKAGE-ERROR]

Restarts:
=C2=A00: [RETRY] Retry SLIME evalua= tion request.
=C2=A01: [*ABORT] Return to SLIME's top level.<= /div>
=C2=A02: [ABORT] Abort thread (#<THREAD "worker" RUN= NING {1006B1CB33}>)

I've got the nREPL 0.1.8-preview running.

LB


--047d7b33c65ec1832804fb0f7678-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Babel Clojure example problems Date: Thu, 05 Jun 2014 11:53:33 +0200 Message-ID: <8738fjptr6.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsUMu-0004yS-Lk for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 05:54:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsUMo-0004TS-Hd for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 05:53:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:33973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsUMo-0004TM-AS for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 05:53:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WsUMm-0005DT-FE for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:53:48 +0200 Received: from e178189060.adsl.alicedsl.de ([85.178.189.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 11:53:48 +0200 Received: from tjolitz by e178189060.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 11:53:48 +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: emacs-orgmode@gnu.org Lawrence Bottorff writes: > I'm having trouble following the example page on babel and clojure ( > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html > ). I believe I've done everything correctly, the first example works: all 3 blocks work fine for me #+begin_src clojure :results silent (+ 1 4) #+end_src #+begin_src clojure :results value [ 1 2 3 4] #+end_src #+results: | 1 | 2 | 3 | 4 | #+begin_src clojure :results value (def small-map {:a 2 :b 4 :c 8}) (:b small-map) #+end_src #+results: : 4 PS #+begin_src emacs-lisp (emacs-version) #+end_src #+results: : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen #+begin_src emacs-lisp (call-interactively 'org-version) #+end_src #+results: : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @ : /usr/share/emacs/24.3/lisp/org/lisp/) -- cheers, Thorsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Babel Clojure example problems Date: Thu, 5 Jun 2014 10:17:16 -0500 Message-ID: References: <8738fjptr6.fsf@gmail.com> <8761kf1m6q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33c65e88c36904fb183d74 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZc2-00038v-HK for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:29:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsZbz-0008JS-AQ for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:29:54 -0400 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:46370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZPq-00035j-32 for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:17:18 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so1211616pdj.8 for ; Thu, 05 Jun 2014 08:17:17 -0700 (PDT) In-Reply-To: <8761kf1m6q.fsf@gmail.com> 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@gnu.org --047d7b33c65e88c36904fb183d74 Content-Type: text/plain; charset=UTF-8 I guess the question comes down to, Do I need to install ob-clojure.el and if so, what's the best way? ELPA doesn't have it. But then my (require 'ob-clojure) doesn't seem to throw an error. . . . LB On Thu, Jun 5, 2014 at 9:10 AM, Thorsten Jolitz wrote: > Lawrence Bottorff writes: > > [why PM?] > > > . . . and here's what I get: > > > > #+begin_src emacs-lisp > > (emacs-version) > > #+end_src > > > > #+RESULTS: > > : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.6) > > : of 2014-01-02 on papaya, modified by Debian > > > > #+begin_src emacs-lisp > > (call-interactively 'org-version) > > #+end_src > > > > #+RESULTS: > > : Org-mode version 8.2.3a (release_8.2.3a @ > > /home/me/.emacs.d/elpa/org-20140602/) > > > > Q: Do I need to download and install a separate ob-clojure.el ? Or is > > it included somewhere? > > havn't done much with ob-clojure yet, sorry, but when block 1 and 2 work > for you, you must have it. > > maybe return to the list and ask if somebody can decipher the error > message? I'm just starting out with clojure and can't help much. I just > opened a temp buffer, put it in org-mode, inserted you 3 blocks, called > M-x cider-jack-in, and evaluated them successfully ... > > > LB > > > > On Thu, Jun 5, 2014 at 4:53 AM, Thorsten Jolitz > > wrote: > > > > Lawrence Bottorff writes: > > > > > I'm having trouble following the example page on babel and > > clojure ( > > > > > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure. > > html > > > ). I believe I've done everything correctly, the first example > > works: > > > > > > all 3 blocks work fine for me > > > > > > #+begin_src clojure :results silent > > (+ 1 4) > > #+end_src > > > > > > #+begin_src clojure :results value > > [ 1 2 3 4] > > #+end_src > > > > > > #+results: > > | 1 | 2 | 3 | 4 | > > > > > > #+begin_src clojure :results value > > (def small-map {:a 2 :b 4 :c 8}) > > (:b small-map) > > #+end_src > > > > > > #+results: > > : 4 > > > > > > PS > > #+begin_src emacs-lisp > > (emacs-version) > > #+end_src > > > > #+results: > > : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) > > : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen > > > > > > #+begin_src emacs-lisp > > (call-interactively 'org-version) > > #+end_src > > > > #+results: > > > > : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @ > > : /usr/share/emacs/24.3/lisp/org/lisp/) > > > > -- > > cheers, > > Thorsten > > > > > > > > > > -- > cheers, > Thorsten > --047d7b33c65e88c36904fb183d74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I guess the question comes down to, Do I need to install o= b-clojure.el and if so, what's the best way? ELPA doesn't have it. = But then my (require 'ob-clojure) doesn't seem to throw an error. .= . .

LB


On Thu, Jun 5, 2014 at 9:10 AM, Thorsten Jolitz <tjolitz= @gmail.com> wrote:
Lawrence Bottorff <borgauf@gmail.com> writes:

[why PM?]

> . . . and here's what I get:
>
> #+begin_src emacs-lisp
> (emacs-version)
> #+end_src
>
> #+RESULTS:
> : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.6)
> : of 2014-01-02 on papaya, modified by Debian
>
> #+begin_src emacs-lisp
> (call-interactively 'org-version)
> #+end_src
>
> #+RESULTS:
> : Org-mode version 8.2.3a (release_8.2.3a @
> /home/me/.emacs.d/elpa/org-20140602/)
>
> Q: Do I need to download and install a separate ob-clojure.el ? Or is<= br> > it included somewhere?

havn't done much with ob-clojure yet, sorry, but when block 1 and= 2 work
for you, you must have it.

maybe return to the list and ask if somebody can decipher the error
message? I'm just starting out with clojure and can't help much. I = just
opened a temp buffer, put it in org-mode, inserted you 3 blocks, called
M-x cider-jack-in, and evaluated them successfully ...

> LB
>
> On Thu, Jun 5, 2014 at 4:53 AM, Thorsten Jolitz <tjolitz@gmail.com>
> wrote:
>
> =C2=A0 =C2=A0 Lawrence Bottorff <borgauf@gmail.com> writes:
>
> =C2=A0 =C2=A0 > I'm having trouble following the example page o= n babel and
> =C2=A0 =C2=A0 clojure (
> =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 http://orgmode.org/worg/org-contri= b/babel/languages/ob-doc-clojure.
> =C2=A0 =C2=A0 html
> =C2=A0 =C2=A0 > ). I believe I've done everything correctly, th= e first example
> =C2=A0 =C2=A0 works:
>
>
> =C2=A0 =C2=A0 all 3 blocks work fine for me
>
>
> =C2=A0 =C2=A0 #+begin_src clojure :results silent
> =C2=A0 =C2=A0 (+ 1 4)
> =C2=A0 =C2=A0 #+end_src
>
>
> =C2=A0 =C2=A0 #+begin_src clojure :results value
> =C2=A0 =C2=A0 [ 1 2 3 4]
> =C2=A0 =C2=A0 #+end_src
>
>
> =C2=A0 =C2=A0 #+results:
> =C2=A0 =C2=A0 | 1 | 2 | 3 | 4 |
>
>
> =C2=A0 =C2=A0 #+begin_src clojure :results value
> =C2=A0 =C2=A0 (def small-map {:a 2 :b 4 :c 8})
> =C2=A0 =C2=A0 (:b small-map)
> =C2=A0 =C2=A0 #+end_src
>
>
> =C2=A0 =C2=A0 #+results:
> =C2=A0 =C2=A0 : 4
>
>
> =C2=A0 =C2=A0 PS
> =C2=A0 =C2=A0 #+begin_src emacs-lisp
> =C2=A0 =C2=A0 (emacs-version)
> =C2=A0 =C2=A0 #+end_src
>
> =C2=A0 =C2=A0 #+results:
> =C2=A0 =C2=A0 : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Versi= on 3.10.7)
> =C2=A0 =C2=A0 : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juerge= n
>
>
> =C2=A0 =C2=A0 #+begin_src emacs-lisp
> =C2=A0 =C2=A0 (call-interactively 'org-version)
> =C2=A0 =C2=A0 #+end_src
>
> =C2=A0 =C2=A0 #+results:
>
> =C2=A0 =C2=A0 : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @ > =C2=A0 =C2=A0 : /usr/share/emacs/24.3/lisp/org/lisp/)
>
> =C2=A0 =C2=A0 --
> =C2=A0 =C2=A0 cheers,
> =C2=A0 =C2=A0 Thorsten
>
>
>
>

--
cheers,
Thorsten

--047d7b33c65e88c36904fb183d74-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Babel Clojure example problems Date: Thu, 05 Jun 2014 17:38:27 +0200 Message-ID: <87sinjz7rg.fsf@gmail.com> References: <8738fjptr6.fsf@gmail.com> <8761kf1m6q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZmR-0005ST-Go for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:40:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsZmJ-0004s8-MJ for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:40:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:49488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZmJ-0004rn-Gf for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 11:40:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WsZm3-0006u4-6y for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 17:40:15 +0200 Received: from e178189060.adsl.alicedsl.de ([85.178.189.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 17:40:15 +0200 Received: from tjolitz by e178189060.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 17:40:15 +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: emacs-orgmode@gnu.org Lawrence Bottorff writes: > I guess the question comes down to, Do I need to install ob-clojure.el > and if so, what's the best way? ELPA doesn't have it. But then my > (require 'ob-clojure) doesn't seem to throw an error. . . . why? for me its right there in /org-mode/lisp ,------------------------------------------------------ | /home/tj/gitclone/org-mode/lisp: | insgesamt 8108 | drwxr-xr-x 2 tj tj 12288 5. Jun 16:49 . | drwxr-xr-x 9 tj tj 4096 24. Apr 11:07 .. | -rw-r--r-- 1 tj tj 2525 23. Apr 17:32 Makefile | [...] | -rw-r--r-- 1 tj tj 4260 23. Apr 17:32 ob-clojure.el `------------------------------------------------------ and when two out of three source-blocks work, it must be there and installed, I would guess. Do you have: ,------------------------------------------------------------ | org-babel-load-languages is a variable defined in `org.el'. | [...] | Value: ((emacs-lisp . t) | (clojure . t) | (latex . t)) `------------------------------------------------------------ -- cheers, Thorsten