persp-delete-frame
alters windows of other frames when killing frame with dedicated window
#195
Labels
persp-delete-frame
alters windows of other frames when killing frame with dedicated window
#195
When closing a frame that only contains one dedicated window, messages similar to the following get logged in
*Messages*
:This also seems to coincide with either a window getting removed from another frame, or the window being changed to some other buffer if it's the only window on the frame.
I've been able to reproduce this in Emacs 28.2. I first noticed it in an EXWM environment (since EXWM creates a new frame with a dedicated window for "floating" X windows), but I've been able to reproduce it in a regular Emacs environment as well.
Steps to reproduce:
C-x 5 2
)C-x b <some buffer name>
)M-: (set-window-dedicated-p (selected-window) t)
C-x 5 0
)*Messages*
.Suspected cause
The infinite loop appears to be as follows:
persp-delete-frame
->persp-kill
persp-kill
->persp-remove-buffer
persp-remove-buffer
->kill-buffer
if the buffer doesn't exist in other perspectiveskill-buffer
->replace-buffer-in-windows
replace-buffer-in-windows
->delete-frame
since the window is dedicated, and the only window in the framedelete-frame
runsdelete-frame-functions
, which containspersp-delete-frame
The text was updated successfully, but these errors were encountered: