-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Buffer-specific back end? #656
Comments
I believe the evaluator is shared between buffers, so it's a non-trivial change. |
When developing multi back ends, I initially followed the example of But that turned out not to be feasible, so One quick idea: IIRC the |
All good, please keep your head where it needs to be, and looking forward to whatever For whenever you're spending time on Racket Mode next, I tried a couple of things and this hack appears to work:
And now, As you mentioned that relying on a buffer local as the primary means to determine a backend didn't work (maybe something to do with the many different local vs remote configurations supported?), maybe using a buffer-local as an overriding configuration like the above hack would be reasonable? That is, if the variable happens to be set, then use it, otherwise fall back to the other means of determining the appropriate back end. In this case, it would probably make sense to extend the |
Fortunately I kept around an old, un-squashed branch with more commit history details for just this sort of situation. 😄 This is the commit where it changed from a buffer-local variable to a function. Some explanation in the commit message:
I wanted to go ahead and share this in case it made sense to you. Although I don't have the spare brain capacity to dig into it deeply, myself, right now, I can still do that later if that would help you! |
A bit more thought: The nuisance and drawbacks I discovered after dog-fooding it, I think are real for the general case:
But, maybe that doesn't apply for the special case where you have one special mode for exactly one live buffer... if that's your situation? And so maybe your overriding check is fine for your special case? And anyway you definitely need something. |
Hi! I'm attempting to try out a Rhombus scratch buffer in mindstream, and it needs to use the bleeding edge Racket as its back end. For all other Racket buffers (which all start in
/var/tmp/...
), I'd like to use a different (i.e. the default system Racket) back end.I know that we can configure which back end to use based on the base directory path, but is it also possible to declare a backend for a specific buffer, since in the present case, all of these buffers would start at the same path? For instance, if we could set a buffer-local variable to indicate the back end to use, I think that should work for my use case, as I would be able to set it at buffer creation time based on the user's indicated needs (e.g. whether they are starting a Rhombus or a Racket or some other session). Wdyt?
The text was updated successfully, but these errors were encountered: