summaryrefslogtreecommitdiff
path: root/cider-debug.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-11-14 16:47:56 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-11-14 16:48:29 +0000
commit51caac8f9369ad1fbc9671e01eadfc07570921a7 (patch)
tree2c8c4e775561187e2ab9d53d1356fef6e786c2d6 /cider-debug.el
parent988014a71889fce1d3862b772024c658c6b0070f (diff)
[Fix #1419] Use dynamic font-lock wherever possible
Diffstat (limited to 'cider-debug.el')
-rw-r--r--cider-debug.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/cider-debug.el b/cider-debug.el
index c4e52aee..0566f55c 100644
--- a/cider-debug.el
+++ b/cider-debug.el
@@ -387,6 +387,7 @@ specific message."
(defun cider--debug-trim-code (code)
(replace-regexp-in-string "\\`#\\(dbg\\|break\\) ?" "" code))
+(declare-function cider-set-buffer-ns "cider-mode")
(defun cider--initialize-debug-buffer (code ns id &optional reason)
"Create a new debugging buffer with CODE and namespace NS.
ID is the id of the message that instrumented CODE.
@@ -396,7 +397,7 @@ REASON is a keyword describing why this buffer was necessary."
(cider-popup-buffer-display buffer 'select)
(with-current-buffer (cider-popup-buffer buffer-name 'select
#'clojure-mode 'ancillary)
- (setq cider-buffer-ns ns)
+ (cider-set-buffer-ns ns)
(setq buffer-undo-list nil)
(let ((inhibit-read-only t)
(buffer-undo-list t))