One small thing - you need a vector around the whole ns piece: (ns foo (:use [com.foo.bar :only [baz quxx]]))
But yes, this is fully supported. The recommended way of doing this since 1.4 is to use :require/:refer instead, but the effect is the same: (ns foo (:require [com.foo.bar :refer [baz quxx]])) On 7 June 2014 17:54, Reid McKenzie <rmckenzi...@gmail.com> wrote: > (ns foo > (:use com.foo.bar :only [baz quxx])) > > is totally supported by the ns macro. > > Reid > > On 06/07/2014 12:53 AM, Glen Rubin wrote: > > My namespace currently looks like this: > > > (ns providence.core > (:gen-class) > (:use seesaw.chooser) > (:use seesaw.core) > (:use clojure.java.shell)) > > However, I only use sh from java.shell choose-file from seesaw.chooser and > alert from seesaw.core. > > How do I import these single functions from the namespace? I know that > calling use on it's own you can use the :only keyword, however this doesn't > seem to work in ns. Thanks! > > > -- > 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/d/optout. > > > -- > 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/d/optout. > -- 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/d/optout.