inf-clojure icon indicating copy to clipboard operation
inf-clojure copied to clipboard

Multiple repls

Open arichiardi opened this issue 8 years ago • 5 comments

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 avatar Dec 28 '17 22:12 arichiardi

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 avatar Dec 31 '17 00:12 arichiardi

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

arichiardi avatar Dec 31 '17 03:12 arichiardi

Indeed. :-)

bbatsov avatar Jan 01 '18 17:01 bbatsov

Keeping it open for improving a bit on it.

arichiardi avatar Jan 01 '18 17:01 arichiardi

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

MalloZup avatar Aug 05 '19 21:08 MalloZup