* Babel Clojure example problems @ 2014-06-05 4:49 Lawrence Bottorff 2014-06-05 9:53 ` Thorsten Jolitz 0 siblings, 1 reply; 4+ messages in thread From: Lawrence Bottorff @ 2014-06-05 4:49 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 897 bytes --] 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: #<SB-IMPL::STRING-INPUT-STREAM {1006B45023}> [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 (#<THREAD "worker" RUNNING {1006B1CB33}>) I've got the nREPL 0.1.8-preview running. LB [-- Attachment #2: Type: text/html, Size: 1505 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Babel Clojure example problems 2014-06-05 4:49 Babel Clojure example problems Lawrence Bottorff @ 2014-06-05 9:53 ` Thorsten Jolitz [not found] ` <CAFAhFSUe3ih1ViUfQPO06CMLe1c+u5JDczHHGh-x4eXGX3jNQA@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Thorsten Jolitz @ 2014-06-05 9:53 UTC (permalink / raw) To: emacs-orgmode Lawrence Bottorff <borgauf@gmail.com> 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAFAhFSUe3ih1ViUfQPO06CMLe1c+u5JDczHHGh-x4eXGX3jNQA@mail.gmail.com>]
[parent not found: <8761kf1m6q.fsf@gmail.com>]
* Re: Babel Clojure example problems [not found] ` <8761kf1m6q.fsf@gmail.com> @ 2014-06-05 15:17 ` Lawrence Bottorff 2014-06-05 15:38 ` Thorsten Jolitz 0 siblings, 1 reply; 4+ messages in thread From: Lawrence Bottorff @ 2014-06-05 15:17 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2723 bytes --] 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 <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 > > 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: > > > > Lawrence Bottorff <borgauf@gmail.com> 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 > [-- Attachment #2: Type: text/html, Size: 4127 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Babel Clojure example problems 2014-06-05 15:17 ` Lawrence Bottorff @ 2014-06-05 15:38 ` Thorsten Jolitz 0 siblings, 0 replies; 4+ messages in thread From: Thorsten Jolitz @ 2014-06-05 15:38 UTC (permalink / raw) To: emacs-orgmode Lawrence Bottorff <borgauf@gmail.com> 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-05 15:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-05 4:49 Babel Clojure example problems Lawrence Bottorff 2014-06-05 9:53 ` Thorsten Jolitz [not found] ` <CAFAhFSUe3ih1ViUfQPO06CMLe1c+u5JDczHHGh-x4eXGX3jNQA@mail.gmail.com> [not found] ` <8761kf1m6q.fsf@gmail.com> 2014-06-05 15:17 ` Lawrence Bottorff 2014-06-05 15:38 ` Thorsten Jolitz
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).