set-repl-name(clojure.contrib.repl-ln)

Sets the repl name format to the string name-fmt. Include the following codes in the name to make the corresponding dynamic values part of it:

%S - repl serial number %T - thread id %D - nesting depth in this thread

With no arguments, resets the repl name to its default: "repl-%S"

; clojure/contrib/repl_ln.clj:157
(defn set-repl-name
  ([]
     (set-repl-name (+info-defaults+ :name-fmt)))
  ([name-fmt]
     (assoc! *info* :name-fmt name-fmt)
     (loop [[[code fmt] & more] (seq +name-formats+)
            name-fmt name-fmt]
       (if code
         (recur more (.replace name-fmt code fmt))
         (assoc! *private* :name-fmt name-fmt)))
     (let [name (repl-name)]
       (assoc! *info* :name name)
       (var-set Compiler/SOURCE name))
     nil))

Copyright (c) Rich Hickey. All rights reserved.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.