Skip to content
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

Multiple repls #118

Open
arichiardi opened this issue Dec 28, 2017 · 5 comments
Open

Multiple repls #118

arichiardi opened this issue Dec 28, 2017 · 5 comments

Comments

@arichiardi
Copy link
Contributor

Hi @bbatsov,
Given we are at it, it would be awesome to implement multiple Repl per project and/or one repl per project.

At the moment C-c C-z always brings up always the same buffer. It looks like there can only be one. I really really hope it is not due to comint limitations.

@arichiardi
Copy link
Contributor Author

I checked and there shouldn't be any limitation from comint for one repl per project setups.

The only thing to "share" across buffer is the inf-clojure-repl-type: it is filled lazily at the time of the first "operation" .
So when we detect the type we need to dispatch it to all the buffers opened for the project - to their buffer local vars. If there is a way to get all the buffer "belonging" to a folder we are good to go, otherwise we'd need to keep a list.
I'd like to keep the "detect it once" behavior because of the thing I have brought up in the other PR: the read of the above var is done every key press and I would not want to keep detecting many times. Plus the asynchronous nature of reading from comint makes things more complicated (unless we bring in some library).
Of course this is based on my limited understanding of all things emacs and I would yield to any more informed opinion.

@arichiardi
Copy link
Contributor Author

Actually scratch all of that, I see that the feature is already there 😮 !

@bbatsov
Copy link
Member

bbatsov commented Jan 1, 2018

Indeed. :-)

@arichiardi
Copy link
Contributor Author

Keeping it open for improving a bit on it.

@MalloZup
Copy link

MalloZup commented Aug 5, 2019

autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants