Skip to content

Commit 9841b38

Browse files
committed
Remove some redundant code
Seems I went overboard with the previous set of changes.
1 parent dfc27a3 commit 9841b38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

inf-clojure.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,9 @@ process buffer for a list of commands.)"
750750
nil
751751
'confirm-after-completion))))
752752
(let* ((project-dir (clojure-project-dir))
753-
(repl-buffer-name (if project-dir (format "*inf-clojure %s*" (inf-clojure--project-name project-dir)) "*inf-clojure*"))
754-
(comint-name (string-trim repl-buffer-name "*" "*")))
753+
(repl-buffer-name (if project-dir
754+
(format "*inf-clojure %s*" (inf-clojure--project-name project-dir))
755+
"*inf-clojure*")))
755756
(if (not (comint-check-proc repl-buffer-name))
756757
;; run the new process in the project's root when in a project folder
757758
(let ((default-directory (or project-dir default-directory))
@@ -764,7 +765,7 @@ process buffer for a list of commands.)"
764765
(inf-clojure--prompt-repl-type))))
765766
(message "Starting Clojure REPL via `%s'..." cmd)
766767
(with-current-buffer (apply #'make-comint
767-
comint-name (car cmdlist) nil (cdr cmdlist))
768+
"inf-clojure" (car cmdlist) nil (cdr cmdlist))
768769
(inf-clojure-mode)
769770
(setq-local inf-clojure-repl-type repl-type)
770771
(hack-dir-local-variables-non-file-buffer))))

0 commit comments

Comments
 (0)