0

I am using emacs-daemon. Lets say many files have already opened using emacsclient.

=> When I open a minibuffer on one emacs frame, all the opened emacsclient buffers get frozen and I cannot type any character into them.

Example:

I have single opened iTerm terminal and it is splitted into two panes. I am using specific keybinding to move in between each other. In both of emacsclient is opened that is connected into same emacs-daemon. Red-box shows the pane windows focus.

=> First I am typing bottom pane than press some keybinding to open the mini-buffer.

enter image description here

=> Later by pressing iTerm's keybinding I move into the upper pane and start typing world or press some emac's keybindings. Please note that I always forget to close the mini-buffer on the bottom pane. Hence nothing is typed on the upper pane.

enter image description here

=> Than I remember I have to close the mini-buffer. So I move into bottom pane and close the mini-buffer. Now I realize all the characters I have already typed is applied on the upper pane even keybindings. For example: world is already written. Or if I already pressed ctrl-k to delete line that is applied and so on.

[Q] Is there any way to prevent this issue? For example, can mini-buffer close itself if I switch into different pane inside iTerm? or at-least prevent typing on different buffers when the mini-buffer is closed?

8
  • Please don't ask multiple different questions in a single Question post.
    – phils
    May 29 '20 at 4:17
  • Your terminology is confusing. Emacs has frames each containing one or more windows, and each window displays a single buffer at any given time (and you can change which buffer is being displayed by a given window). You seem to be conflating windows and buffers, which makes the question hard to understand. E.g. there's no such thing as one buffer "moving into" another buffer -- that makes no sense.
    – phils
    May 29 '20 at 4:21
  • Each of your emacsclient instances will be accessing the same single server; so in any of those frames you have access to every buffer in the server. If you want complete separation between instances then you don't want to be using the client/server approach at all, but instead should just run multiple emacs instances.
    – phils
    May 29 '20 at 4:25
  • Sorry I got confused as well. The real answer I was investigating was to abort the minibuffer when move to different pane in iTerm in between emacsclients, I asked in more clear format stackoverflow.com/questions/62077209/… . This could be accoumplish by using mouse click. @phils
    – alper
    May 29 '20 at 9:48
  • I don't want complete seperation, I just don't want opened minibuffer to froze any other emacsclient when I start to use them.
    – alper
    May 29 '20 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.