Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Add clj-stacktrace color support
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmansen committed Dec 18, 2011
1 parent 41550bf commit 0dae29e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/swank/core.clj
Expand Up @@ -120,7 +120,7 @@ values."

(defn- exception-str [width elem]
(pst-elem-str
false
true
(parse-trace-elem elem)
width))

Expand Down
7 changes: 4 additions & 3 deletions src/swank/payload/slime.el
Expand Up @@ -5699,15 +5699,16 @@ Returns nil if both fails."
(defun sldb-insert-frame (frame &optional face)
"Insert FRAME with FACE at point.
If FACE is nil, `sldb-compute-frame-face' is used to determine the face."
(setq face (or face (sldb-compute-frame-face frame)))
(let ((number (sldb-frame.number frame))
(string (sldb-frame.string frame))
(string (ansi-color-apply (sldb-frame.string frame)))
(props `(frame ,frame sldb-default-action sldb-toggle-details)))
(slime-propertize-region props
(slime-propertize-region '(mouse-face highlight)
(insert " " (in-sldb-face frame-label (format "%2d:" number)) " ")
(slime-insert-indented
(slime-add-face face string)))
(if face
(slime-add-face face string)
string)))
(insert "\n"))))

(defun sldb-fetch-more-frames (&rest ignore)
Expand Down

0 comments on commit 0dae29e

Please sign in to comment.