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--