Skip to content

Commit 7d3a478

Browse files
committed
Defalias cider-project-directory-for' to clojure-project-dir'
Resolve a duplicate `cider-project-directory-for' functionality against clojure-mode project
1 parent b9e485d commit 7d3a478

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cider-interaction.el

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,7 @@ is ambiguity, therefore nil is returned."
468468
(file-name-directory buffer-file-name)
469469
default-directory))
470470

471-
(defun cider-project-directory-for (dir-name)
472-
"Return the project directory for the specified DIR-NAME."
473-
(when dir-name
474-
(or (locate-dominating-file dir-name "project.clj")
475-
(locate-dominating-file dir-name "build.boot"))))
471+
(defalias cider-project-directory-for clojure-project-dir)
476472

477473
(defun cider-set-relevant-connection (&optional do-prompt)
478474
"Try to set the current REPL buffer based on the the current Clojure source buffer.

0 commit comments

Comments
 (0)