Thanks again! However, the problem persists. In re-installed emacs 24.3 and fetched the org-mode development version again (M-x org-version: *Org-mode version 8.2.5h (release_8.2.5h-643-gd0ae56 @ /home/pold/org-mode/lisp/*). I also tried to copy the content of the ob-clojure.el file directly to my .emacs.
My .emacs only has a minimal content: (require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) (defvar my-packages '(starter-kit starter-kit-lisp starter-kit-bindings starter-kit-eshell clojure-mode clojure-test-mode cider)) (dolist (p my-packages) (when (not (package-installed-p p)) (package-install p))) (add-to-list 'load-path "/home/pold/org-mode/lisp") (require 'org) (require 'ob-clojure) (setq org-babel-clojure-backend 'cider) (require 'cider) My installed packages are: (clojure-test-mode cider clojure-mode pkg-info epl dash starter-kit-bindings starter-kit-eshell starter-kit-lisp elisp-slime-nav starter-kit magit ido-ubiquitous smex find-file-in-project idle-highlight-mode paredit). I think, I'll post my problem to the org-mode mailing list. Bye for now Volker Am Freitag, 21. Februar 2014 10:04:56 UTC+1 schrieb Maik Schünemann: > > That is really strange. > The location of the org file doesn't matter as long as it is in the > right project so that cider can find the project.clj > could it be that you have conflicting versions of org mode? > Make sure that you have the new version of ob-clojure loaded. It > should look like this > http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ob-clojure.el > maybe the old ob-clojure from the org mode shipping with emacs gets > loaded. > Try to evaluate the file in an emacs session or copy the content to > you .emacs file to make sure it gets executed (without the provide and > require statements) > > > On Fri, Feb 21, 2014 at 7:30 AM, Volker Strobel > <volker.s...@gmail.com <javascript:>> wrote: > > Now I have the same problem again... Everything worked fine for a few > hours, > > until now. > > Again, I tried to re-install/rebuild org-mode (development version from > git) > > etc. > > I don't know what suddenly went wrong (I moved my .org file from the > src/ > > folder to the leiningen project folder, but I undid that again). > > I also created a new leiningen project in order to start from scratch. > If I > > include (in-ns ...) in every code block it'll work fine, but I really > would > > try to avoid that. > > Here is an example again: > > > > #+BEGIN_SRC clojure :tangle core.clj > > (ns org-works.core > > (:gen-class)) > > #+END_SRC > > > > #+RESULTS: > > : nil > > > > #+BEGIN_SRC clojure :tangle core.clj > > (in-ns 'org-works.core) > > (def a 5) > > > > #+END_SRC > > > > #+RESULTS: > > : #'org-works.core/a > > > > #+BEGIN_SRC clojure :tangle core.clj > > (def b 5) > > > > #+END_SRC > > > > #+RESULTS: > > : #'user/b > > > > Currently this file is located in the src folder of the leiningen > project. > > How can I make org-mode to use the correct namespace again? > > Thanks, again! > > Volker > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your > > first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the Google > Groups > > "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to clojure+u...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.