-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Close frame in persistent-server mode not working correctly #2625
Comments
I tried to reproduce this on the |
|
|
I propose to change the following: In "normal" mode:
In "daemon" mode:
The reason why (defun bb/maybe-quit ()
(interactive)
(if (cdr (visible-frame-list))
(call-interactively 'spacemacs/frame-killer)
(call-interactively 'spacemacs/prompt-kill-emacs))) |
I agree with this proposal. It's very annoying to have to restart emacs daemon every time I |
@StreakyCobra this proposed behavior seems to not yet be implemented, is it as simple as remapping the stock spacemacs keybindings and remapping the EDIT: from what I've gathered from digging through the code a bit, what also needs to be implemented is a function to determine whether emacs is running in daemon mode? |
While this may not be the most common use case, I've found that this issue is not completely fixed once you throw
From here, if you use As it happens, using the Emacs suggested In fact, Unfortunately, all the most obvious mnemonics ( |
All, I made some changes to persistent-server in #8019, you want to see if that helps with the issues? It fixes the logic (which was broken for frame killing) and it allows you to close the server even when debug is active. |
Any updates on this? I'm on develop branch and this comment is still true, even with |
In my opinion, there are a number of possibilities for "correct" behaviour of key bindings for closing/suspending/quitting, depending partly on how Emacs is being run - a single terminal emulator, multiplexed terminals on tmux or similar, a graphical environment, local, remote, different OS, and so on - and partly on the preferences and habits of individuals. I think it might make sense therefore (if possible) for Spacemacs to expose more of those possibilities by adding new bindings rather than trying to choose just one or two. About the persistent server, I really just wish it worked in a predictable way, with my own preference being to make it easy to activate and hard to kill... based on the idea that having to force kill an unwanted process is merely inconvenient, but accidentally killing a process could lose my work. |
Just want to ping this issue |
I recently started using daemon mode and this brought my enthusiasm for it to a screeching halt. Is there any workaround? I have the |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
On 0.103.5 the option
SPC q z
to close frames connected is not working correctly as it doesn't return after closing the frame. To reproduce:dotspacemacs-persistent-server t
set in the config file.SPC q z
CTRL C
as the emacsclient process doesn't terminate as instructed.*) Note that the suggested emacs keybinding in the minibuffer
C-x 5 0
does correctly close the frame and exit from the terminal.btw) A sideline as it might be a feature. I find it annoying/confusing that hitting
SPC q q
in a frame is closing all emacs windows when there are no unsaved changes as this is way to easy to do by accident. I would find if more logical that the easy to hit key-bindingSPC q q
would close the frame when dotspacemacs-persistent-server is t (if it is nil then close emacs as expected). Closing all windows including the server could then for example be onSPC q a
(quit all) or theSPC q z
now closing the frame.The text was updated successfully, but these errors were encountered: