[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 9841b38 303/313: Remove some redundant code
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 9841b38 303/313: Remove some redundant code |
Date: |
Wed, 11 Aug 2021 10:00:38 -0400 (EDT) |
branch: elpa/inf-clojure
commit 9841b38dde980789b3b5d13479c3b299fa3fcbd8
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>
Remove some redundant code
Seems I went overboard with the previous set of changes.
---
inf-clojure.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 6d1bbab..12b0cb0 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -750,8 +750,9 @@ process buffer for a list of commands.)"
nil
'confirm-after-completion))))
(let* ((project-dir (clojure-project-dir))
- (repl-buffer-name (if project-dir (format "*inf-clojure %s*"
(inf-clojure--project-name project-dir)) "*inf-clojure*"))
- (comint-name (string-trim repl-buffer-name "*" "*")))
+ (repl-buffer-name (if project-dir
+ (format "*inf-clojure %s*"
(inf-clojure--project-name project-dir))
+ "*inf-clojure*")))
(if (not (comint-check-proc repl-buffer-name))
;; run the new process in the project's root when in a project
folder
(let ((default-directory (or project-dir default-directory))
@@ -764,7 +765,7 @@ process buffer for a list of commands.)"
(inf-clojure--prompt-repl-type))))
(message "Starting Clojure REPL via `%s'..." cmd)
(with-current-buffer (apply #'make-comint
- comint-name (car cmdlist) nil (cdr
cmdlist))
+ "inf-clojure" (car cmdlist) nil
(cdr cmdlist))
(inf-clojure-mode)
(setq-local inf-clojure-repl-type repl-type)
(hack-dir-local-variables-non-file-buffer))))
- [nongnu] elpa/inf-clojure f63c609 252/313: Fix a typo, (continued)
- [nongnu] elpa/inf-clojure f63c609 252/313: Fix a typo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b5e915c 204/313: Travis test like in cider, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b88de63 260/313: Tweak a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e144b33 276/313: Improve the Makefile commands, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 917ee77 268/313: Improve the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 91f4121 280/313: Bump the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8eaf885 275/313: [Fix #152] Sanitize should only remove whitespace at the end of a command, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ec4a85e 285/313: Bump copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2046b12 298/313: Make inf-clojure-repl-p a bit more flexible, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e1d7007 297/313: Touch up the previous commit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9841b38 303/313: Remove some redundant code,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 3d31bee 313/313: Update my email, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 26a2076 305/313: Replace if + not with unless, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure be3e2e7 195/313: Introduce inf-clojure-reload, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 953feb0 198/313: Improve command sanitation code, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7ed4f44 203/313: Remove emacs 24.3 and add 26 to Travis tests, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 010d859 219/313: Fix spelling issues (#156), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7bf6f3d 209/313: README: Improve formatting., ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 575538e 230/313: Create FUNDING.yml, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure bd06d4f 229/313: A few updates to links and formatting in README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 49390d9 231/313: Bump the copyright years, ELPA Syncer, 2021/08/11