Skip to content

Commit

Permalink
doc updated
Browse files Browse the repository at this point in the history
  • Loading branch information
philoskim committed Feb 1, 2019
1 parent ec93eb5 commit ddd243f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
13 changes: 6 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1175,16 +1175,16 @@ result.

[source]
....
(dbgn (quote a))
(dbgn (defmacro unless [pred a b]
`(if (not ~pred) ~a ~b)))
....

[listing]
.REPL output
----
dbgn: (quote a) =>
| (quote a) =>
| a
a
dbgn: (defmacro unless [pred a b] (clojure.core/seq (clojure.core/concat (cl ... =>
| (defmacro unless [pred a b] (clojure.core/seq (clojure.core/concat (cl ... =>
| #'user/unless
----

#### `:skip-form-itself-type` example
Expand All @@ -1206,8 +1206,7 @@ dbgn: (try (/ 1 0) (catch ArithmeticException e (str "caught exception: " (. ...
| "caught exception: Divide by zero"
----

NOTE: The evaluated resuts of the `catch` form itself are not printed in the above
example.
NOTE: The evaluated resuts of the `catch` form are not printed in the above example.

#### `:expand-type` example

Expand Down
2 changes: 1 addition & 1 deletion src/debux/common/skip.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(ms/skip (ut/insert-blank-line))
~@form))

(defn insert-skip-in-prepost [prepost]
(defn- insert-skip-in-prepost [prepost]
`(ms/skip ~prepost))

(defn- insert-indent-info-in-defn-body [arity]
Expand Down
7 changes: 2 additions & 5 deletions src/debux/cs/util.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
:normal "background-color: white; color: black"
:title "background-color: white; color: #8b008b"} ))

(defn- get-style
"<style kw|str> style-name
<return str?>"
[style]
(defn- get-style [style]
(cond
(keyword? style)
(cond
Expand Down Expand Up @@ -65,7 +62,7 @@

;;; printing for browser console
#?(:cljs
(defn- form-header [form & [msg]]
(defn form-header [form & [msg]]
(str "%c " (ut/truncate (pr-str form))
" %c" (and msg (str " <" msg ">"))
" =>") ))
Expand Down
2 changes: 1 addition & 1 deletion src/debux/dbg.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
result#) ))


(def dbg*
(def ^:private dbg*
{:-> '#{clojure.core/-> cljs.core/->}
:->> '#{clojure.core/->> cljs.core/->>}
:comp '#{clojure.core/comp cljs.core/comp}
Expand Down
2 changes: 1 addition & 1 deletion src/debux/macro_types.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
some-> some->>}
:dot-type `#{.} }))

(defn merge-symbols [old-symbols new-symbols]
(defn- merge-symbols [old-symbols new-symbols]
(->> (map #(ut/ns-symbol %) new-symbols)
set
(set/union old-symbols) ))
Expand Down

0 comments on commit ddd243f

Please sign in to comment.