Browse Source

ob-clojure: fully qualified pprint -- thanks to Rick Moynihan

* lisp/ob-clojure.el: Updated requirements documentation to mention
  the minimum version of Clojure.
  (org-babel-expand-body:clojure): Fully qualified function name.
Eric Schulte 14 years ago
parent
commit
143292aab5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ob-clojure.el

+ 2 - 2
lisp/ob-clojure.el

@@ -28,7 +28,7 @@
 
 ;;; Requirements:
 
-;;; A working clojure install. This also implies a working java executable
+;;; - clojure (at least 1.2.0)
 ;;; - clojure-mode
 ;;; - slime
 ;;; - swank-clojure
@@ -63,7 +63,7 @@
     (if (or (member "code" result-params)
 	    (member "pp" result-params))
 	(format (concat "(let [org-mode-print-catcher (java.io.StringWriter.)]"
-			"(with-pprint-dispatch %s-dispatch"
+			"(clojure.pprint/with-pprint-dispatch %s-dispatch"
 			"(clojure.pprint/pprint %s org-mode-print-catcher)"
 			"(str org-mode-print-catcher)))")
 		(if (member "code" result-params) "code" "simple") body)