summaryrefslogtreecommitdiff
path: root/cider-debug.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-09-02 16:04:31 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-09-09 23:05:46 +0100
commit33c026ce87d5d28e1efb20aa6514d86d354b8433 (patch)
tree3b47910371461219a615649db527335c450b3cbd /cider-debug.el
parent7c186a0f11394ef459a524bf16b0dc62fcc9ef36 (diff)
Implement dynamic font-locking
Ditch instrumented defs overlay for the new font-locking. All macros are now font-locked. This is configurable via the cider-font-lock-dynamically variable.
Diffstat (limited to 'cider-debug.el')
-rw-r--r--cider-debug.el24
1 files changed, 0 insertions, 24 deletions
diff --git a/cider-debug.el b/cider-debug.el
index bbbe40f5..eaef3b76 100644
--- a/cider-debug.el
+++ b/cider-debug.el
@@ -104,28 +104,6 @@ This variable must be set before starting the repl connection."
;;; Implementation
-(defun cider--update-instrumented-defs (defs)
- "Update which DEFS in current buffer are instrumented."
- (remove-overlays nil nil 'cider-type 'instrumented-defs)
- (save-excursion
- (dolist (name defs)
- (goto-char (point-min))
- (when (search-forward-regexp
- (format "(def.*\\s-\\(%s\\)" (regexp-quote name))
- nil 'noerror)
- (cider--make-overlay
- (match-beginning 1) (match-end 1) 'instrumented-defs
- 'face 'cider-instrumented-face)))))
-
-(defun cider--debug-handle-instrumented-defs (defs ns)
- "Update display of NS according to instrumented DEFS."
- (-when-let (buf (-first (lambda (b) (with-current-buffer b
- (and (derived-mode-p 'clojure-mode)
- (string= ns (cider-current-ns)))))
- (buffer-list)))
- (with-current-buffer buf
- (cider--update-instrumented-defs defs))))
-
(defun cider-browse-instrumented-defs ()
"List all instrumented definitions."
(interactive)
@@ -147,8 +125,6 @@ This variable must be set before starting the repl connection."
(defun cider--debug-response-handler (response)
"Handle responses from the cider.debug middleware."
(nrepl-dbind-response response (status id instrumented-defs ns causes)
- (when (member "instrumented-defs" status)
- (cider--debug-handle-instrumented-defs instrumented-defs ns))
(when (member "eval-error" status)
(cider--render-stacktrace-causes causes))
(when (member "need-debug-input" status)