-
-
Notifications
You must be signed in to change notification settings - Fork 45
Comint adds *'s to name: #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docstring: The name of the buffer is made by surrounding NAME with `*'s. Otherwise you end up in a fundamental mode buffer unconnected to the process.
@@ -766,7 +768,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 | |||
"inf-clojure" (car cmdlist) nil (cdr cmdlist)) | |||
process-buffer-name (car cmdlist) nil (cdr cmdlist)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that's needed? At first I thought so myself, but you might have noticed that I just reverted it, before you added it. :D I don't think that the process name has to be unique or derived from the buffer name. After all - it was always the same until now and this worked just fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prior to this change the string "inf-clojure" was passed in, and the buffer name we used was "*inf-clojure*"
for this reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, you're right. That's the only place where we pass the buffer name anyways. :D I wonder what I was thinking when I deleted this. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i suspect that's the disambiguation that they do when they do match. ie, the same name goes in and it adds a 1 on the end. I suspect the best thing to do is actually start up the repl and then rename it repl-projec-name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're probably right, I didn't dwell on this much. I was also thinking of making the naming template configurable in case someone wants different names by default.
Redundant, my ass 9841b38 😆 |
thansk @bbatsov and all the docstring tweaks and cleanup is much appreciated! |
You're welcome! In the morning I felt inspired and I decided to do a bit of work on |
docstring of
make-comint
:The name of the buffer is made by surrounding NAME with `*'s.
Otherwise you end up in a fundamental mode buffer unconnected to the
process.