summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-07-08 08:17:25 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2018-07-08 08:17:25 +0200
commite78389572f637fb0a9705046ef16507e97e52234 (patch)
treec5b9b3803b5636a7bbab6975c6c995a4c95ade57
parent27910f39b99fa5a94dadd170a2c9c1735c79dbdc (diff)
Rename cider-find-or-create-scratch-buffer to cider-scratch-find-or-create-buffer
-rw-r--r--cider-scratch.el4
-rw-r--r--cider-selector.el4
-rw-r--r--test/cider-selector-tests.el4
3 files changed, 6 insertions, 6 deletions
diff --git a/cider-scratch.el b/cider-scratch.el
index 32877981..00cd431b 100644
--- a/cider-scratch.el
+++ b/cider-scratch.el
@@ -61,9 +61,9 @@
(defun cider-scratch ()
"Go to the scratch buffer named `cider-scratch-buffer-name'."
(interactive)
- (pop-to-buffer (cider-find-or-create-scratch-buffer)))
+ (pop-to-buffer (cider-scratch-find-or-create-buffer)))
-(defun cider-find-or-create-scratch-buffer ()
+(defun cider-scratch-find-or-create-buffer ()
"Find or create the scratch buffer."
(or (get-buffer cider-scratch-buffer-name)
(cider-create-scratch-buffer)))
diff --git a/cider-selector.el b/cider-selector.el
index 92c90965..e0ba71d3 100644
--- a/cider-selector.el
+++ b/cider-selector.el
@@ -150,10 +150,10 @@ is chosen. The returned buffer is selected with
"*cider-doc* buffer."
cider-doc-buffer)
-(declare-function cider-find-or-create-scratch-buffer "cider-scratch")
+(declare-function cider-scratch-find-or-create-buffer "cider-scratch")
(def-cider-selector-method ?s
"*cider-scratch* buffer."
- (cider-find-or-create-scratch-buffer))
+ (cider-scratch-find-or-create-buffer))
(provide 'cider-selector)
diff --git a/test/cider-selector-tests.el b/test/cider-selector-tests.el
index eac41cde..88a87949 100644
--- a/test/cider-selector-tests.el
+++ b/test/cider-selector-tests.el
@@ -79,7 +79,7 @@
(cider--test-selector-method ?d 'cider-stacktrace-mode "*cider-doc*")))
(describe "cider-seletor-method-s"
- :var (cider-find-or-create-scratch-buffer)
+ :var (cider-scratch-find-or-create-buffer)
(it "switches to *cider-scratch* buffer"
- (spy-on 'cider-find-or-create-scratch-buffer :and-return-value "*cider-scratch*")
+ (spy-on 'cider-scratch-find-or-create-buffer :and-return-value "*cider-scratch*")
(cider--test-selector-method ?s 'cider-docview-mode "*cider-scratch*")))