summaryrefslogtreecommitdiff
path: root/cider-macroexpansion.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-06-24 22:52:23 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-06-24 22:52:23 +0300
commit13c76efcfc94f3c97183962f91146a851bd7a9d3 (patch)
treea8c5de71220b388c0e4b40974401f0f70aec971b /cider-macroexpansion.el
parent1fa530a18fd2d8554900860b19161f9e65aa420c (diff)
[Fix #2347] Remove direct manipulations of cider-ancillary-buffers
CIDER's popups had a way to track those automatically for a while, it's time to leverage this consistently.
Diffstat (limited to 'cider-macroexpansion.el')
-rw-r--r--cider-macroexpansion.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/cider-macroexpansion.el b/cider-macroexpansion.el
index e0d42d7d..d2fef819 100644
--- a/cider-macroexpansion.el
+++ b/cider-macroexpansion.el
@@ -36,7 +36,6 @@
(require 'cider-compat)
(defconst cider-macroexpansion-buffer "*cider-macroexpansion*")
-(add-to-list 'cider-ancillary-buffers cider-macroexpansion-buffer)
(defcustom cider-macroexpansion-display-namespaces 'tidy
"Determines if namespaces are displayed in the macroexpansion buffer.
@@ -163,8 +162,7 @@ and point is placed after the expanded form."
(defun cider-create-macroexpansion-buffer ()
"Create a new macroexpansion buffer."
- (with-current-buffer (cider-popup-buffer cider-macroexpansion-buffer t)
- (clojure-mode)
+ (with-current-buffer (cider-popup-buffer cider-macroexpansion-buffer 'select 'clojure-mode 'ancillary)
(cider-mode -1)
(cider-macroexpansion-mode 1)
(current-buffer)))