Attempt to delete-frame first in frame-killer
This is needed to get the frame to properly close when running a client from the terminal. server-kill-buffer will close the frame for the terminal only if the terminal was opened with a file argument and you haven't changed buffers. make-frame-invisible is still needed as a fall back if you are still working from the first emacs window since it won't let you delete the last frame.
This commit is contained in:
parent
91bb21788f
commit
ad0f26abde
|
@ -514,7 +514,10 @@ dotspacemacs-persistent-server to be t"
|
|||
"Kill server buffer and hide the main Emacs window"
|
||||
(interactive)
|
||||
(server-kill-buffer)
|
||||
(make-frame-invisible nil 1))
|
||||
(condition-case nil
|
||||
(delete-frame nil 1)
|
||||
(error
|
||||
(make-frame-invisible nil 1))))
|
||||
|
||||
(defun spacemacs/toggle-frame-fullscreen ()
|
||||
"Respect the `dotspacemacs-fullscreen-use-non-native' variable when
|
||||
|
|
Loading…
Reference in New Issue