It is necessary temporarily, before pressing the "Enter" key, to switch to a special mode when all keyboard commands are redirected and executed in the "other" window buffer.

Why it is needed. While working with Slime, when setting up a function, you have to constantly perform the same sequential actions:

  1. Fix function
  2. Cc Cc - compile function
  3. Cx o - switch to the buffer of the "other" window (REPL is running there)
  4. Mp - repeat the last REPL statement, it is possible to change it.
  5. Enter - execute the last expression in the REPL
  6. Cx o - return to the original window

So, I would like to exclude clauses 3 and 6 so that the sequence of actions becomes the following:

  1. Fix function
  2. Cc Cc - compile function
  3. Enter the temporary control mode of the "other" window (there is still a REPL)
  4. Mp - repeat the last REPL statement, it is possible to change it.
  5. Enter - execute the last expression in the REPL and return to the original window

A similar problem occurs when invoking the Ch f help. The help text opens in the “other” window and overlaps the REPL, and the original window remains active. And it turns out to close the help you need to do one unnecessary switching to the "other" window, since after the help is closed, it still returns to the original one.

  • Read the comment in the question about installing VS, amazed at your excerpt))) - Nick Volynkin
  • @NickVolynkin In our country, the goal is to change the runet’s idea of ​​communication :) Well, in general, fear is often the cause of aggression, and incomprehensibility or uncertainty is the cause of fear. Therefore, to stop aggression it is often effective to simply explain to a person what is what. - Cerbo
  • fine. I propose to write a help section on this topic)) - Nick Volynkin
  • if anything, it's not sarcasm. - Nick Volynkin 5:58 pm

1 answer 1

Did not quite understand what the problem is? Just on Cc Cc, we hang up the function that will first compile and then switch to another buffer, and on enter the function that will execute the expression and return the buffer.

  • The problem is that I want a universal solution - Cerbo