From mboxrd@z Thu Jan 1 00:00:00 1970 From: Volker Strobel Subject: Re: Namespace problem org-mode / Clojure Date: Tue, 25 Feb 2014 10:22:21 +0100 Message-ID: <87vbw3v96a.fsf@gmail.com> References: <1393170060.2128.14.camel@raven-CM5571> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEDt-0007o0-V7 for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:22:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIEDl-00070M-Id for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:22:45 -0500 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:37249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEDl-00070A-Ao for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:22:37 -0500 Received: by mail-ee0-f49.google.com with SMTP id b57so620758eek.8 for ; Tue, 25 Feb 2014 01:22:36 -0800 (PST) In-reply-to: <1393170060.2128.14.camel@raven-CM5571> 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: Soapy Smith Cc: emacs-orgmode@gnu.org 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 yes, adding an explicit namespace declaration (ns, in-ns) to every code block works, but that's a rather roundabout way (I've many small snippets in the same namespace) and it produces a bit 'unsightly', tangled code. So, I'd be really glad, if this issue could be processed. Best, Volker Soapy Smith writes: > 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 block, it > works! This is true even thought the 3rd block does not(???). > > I was thinking back to why I never encountered this problem, and it is > because I have almost always used an explicit namespace declaration at > the top of the block. Fortunately, after the first block, you don't > have to use the optional parameters, includes etc. In your example > > (ns environment.my-test) > > added to subsequent code blocks you wish to execute in the same > namespace should be sufficient. I think this should be considered the > "work-around" until someone can explain what is going on, or, even > better, can fix this. > > I'm the person who updated the worg documentation for Clojure code > blocks. I'm thinking about adding a list of TODOs at the bottom, as > there have been some other requests recently to the function behavior. > This issue definitely will go on the list. Hopefully Bastien is > monitoring and can comment if this is appropriate to add to the Clojure > specific worg page (or should it go somewhere else). > > Regards, > Greg -- Sent with my mu4e