Re: [O] Namespace problem org-mode / Clojure

2014-03-20 Thread Volker Strobel
A belated, but very big thanks to both of you! It works perfectly now :) Best, Volker On Thu, Mar 13, 2014 at 4:18 PM, Bastien b...@gnu.org wrote: Hi, Soapy Smith soapy-sm...@comcast.net writes: I installed the update and ran Volker's test code. It works! The namespace is preserved

Re: [O] Namespace problem org-mode / Clojure

2014-03-19 Thread Soapy Smith
That's great! A big thanks to Bastien for fixing the elisp, and keeping Clojure code blocks working smoothly. Speaking of org-mode and Clojure... You may be interested in the recent Clojure org-mode postings at the Google group: https://groups.google.com/forum/#!topic/clojure/hWqPXn1_pK4

Re: [O] Namespace problem org-mode / Clojure

2014-03-13 Thread Bastien
Hi, Soapy Smith soapy-sm...@comcast.net writes: I installed the update and ran Volker's test code. It works! The namespace is preserved from block-to-block. Thank you Bastien! You're welcome! I experimented with the :session option, however, I am now not sure I understand how it is

Re: [O] Namespace problem org-mode / Clojure

2014-03-04 Thread Soapy Smith
I installed the update and ran Volker's test code. It works! The namespace is preserved from block-to-block. Thank you Bastien! I experimented with the :session option, however, I am now not sure I understand how it is supposed to work. I believed it would cause the code block to switch

Re: [O] Namespace problem org-mode / Clojure

2014-03-03 Thread Bastien
Hi Volker and Greg, I hopefully fixed this in master. Can you pull and test? Thanks, -- Bastien

Re: [O] Namespace problem org-mode / Clojure

2014-03-03 Thread Soapy Smith
Hi Bastien- I will check it tomorrow and report. Thank you! Regarding TODOs related to Clojure code blocks; where is the best place for them? Greg On Mon, 2014-03-03 at 13:54 +0100, Bastien wrote: Hi Volker and Greg, I hopefully fixed this in master. Can you pull and test? Thanks,

Re: [O] Namespace problem org-mode / Clojure

2014-02-26 Thread Soapy Smith
On Tue, 2014-02-25 at 06:20 -0500, Soapy Smith wrote: I will add this issue to the list of TODOs for Clojure code blocks. One thing I can do quickly is see if the problem exists in version 7.9 org with nrepl (prior to CIDER). I have a machine which still has the old configuration. I will

Re: [O] Namespace problem org-mode / Clojure

2014-02-25 Thread Volker Strobel
Hi Soapy, thank you! I feel at ease knowing that you could replicate the behavior, as I was trying to find the error in my settings for a long, long time (and as mentioned before, it did work for some time, and I've no clue why - I've played around with some settings in the init file). And

Re: [O] Namespace problem org-mode / Clojure

2014-02-25 Thread Soapy Smith
I will add this issue to the list of TODOs for Clojure code blocks. One thing I can do quickly is see if the problem exists in version 7.9 org with nrepl (prior to CIDER). I have a machine which still has the old configuration. I will try later today and report. Regards, Greg (alias Soapy

Re: [O] Namespace problem org-mode / Clojure

2014-02-23 Thread Soapy Smith
Hi Tom- I'm not yet good at elisp, but looking at the ob-clojure.el file, the header option :package is only associated with slime, not cider? Regards, Greg On Fri, 2014-02-21 at 12:36 -1000, Thomas S. Dye wrote: Aloha Volker, I don't use Clojure, but ob-clojure.el defines a header

Re: [O] Namespace problem org-mode / Clojure

2014-02-23 Thread Soapy Smith
Hi Volker- I tried the your example code blocks on my system, and I concur with most of the behavior you described. org-babel-execute-buffer does not work, as it comes back with error repl not connected. It did not cause a crash. However, if I add explicit namespace declaration to the 2nd

Re: [O] Namespace problem org-mode / Clojure

2014-02-23 Thread Thomas S. Dye
Soapy Smith soapy-sm...@comcast.net writes: Hi Tom- I'm not yet good at elisp, but looking at the ob-clojure.el file, the header option :package is only associated with slime, not cider? Regards, Greg I think so. It looks like cider and nrepl use a different variable, ns, which isn't

[O] Namespace problem org-mode / Clojure

2014-02-21 Thread Volker Strobel
Hi, I'm trying to use org-mode with Clojure and already posted my problem at https://groups.google.com/forum/#!topic/clojure/lnZWUH4XxJM All my code blocks get evaluated in the namespace user, even if I evaluate the (ns ...) code block first. EXAMPLE (core.org in src/org-works of Leiningen

Re: [O] Namespace problem org-mode / Clojure

2014-02-21 Thread Thomas S. Dye
Aloha Volker, I don't use Clojure, but ob-clojure.el defines a header argument :package. You should be able to do something like: #+header: :package org-works.core to execute code in that name space. hth, Tom Volker Strobel volker.strobe...@gmail.com writes: Hi, I'm trying to use org-mode

Re: [O] Namespace problem org-mode / Clojure

2014-02-21 Thread Volker Strobel
Thanks for your answer, Tom! I tried to modify my org file like this: - #+header: :package org-works.core #+BEGIN_SRC clojure :tangle core.clj (ns org-works.core (:gen-class)) #+END_SRC #+header: :package org-works.core #+BEGIN_SRC clojure :tangle core.clj (def a 5) #+END_SRC

Re: [O] Namespace problem org-mode / Clojure

2014-02-21 Thread Thomas S. Dye
Ouch! You'll want advice from an expert then. All the best, Tom Volker Strobel volker.strobe...@gmail.com writes: Thanks for your answer, Tom! I tried to modify my org file like this: - #+header: :package org-works.core #+BEGIN_SRC clojure :tangle core.clj (ns org-works.core