Works for me in the clojure.main REPL (this is with 1.9.0-alpha17):

user=> {:a/b 1}
#:a{:b 1}
user=> (set! *print-namespace-maps* false)
false
user=> {:a/b 1}
{:a/b 1}

It's also possible to redefine the map printer which should work regardless:

(defmethod print-method clojure.lang.IPersistentMap [m, ^java.io.Writer w]
  (#'clojure.core/print-meta m w)
(#'clojure.core/print-map m #'clojure.core/pr-on w))




On Tuesday, June 27, 2017 at 1:06:27 AM UTC-5, Christian Johansen wrote:
>
> Hi,
>
> *print-namespace-maps* disables the new namespace maps formatting in 
> Clojure 1.9. However, it does not seem to affect formatting of return 
> values in the REPL (tried both the standard REPL as well as in Emacs with 
> CIDER).
>
> Is it possible to completely disable this kind of formatting of maps with 
> namespaced keys? Or maybe someone knows how to do it specifically for CIDER?
>
> https://clojuredocs.org/clojure.core/*print-namespace-maps*
>
> Regards,
> Christian
>
>

-- 
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.

Reply via email to