wasamasa / eyebrowse

A simple-minded way of managing window configs in emacs
GNU General Public License v3.0
437 stars 24 forks source link

Window restoration glitches #55

Closed wasamasa closed 7 years ago

wasamasa commented 8 years ago

I suspect these were there ever since I succumbed to using setf to modify conses...

wasamasa commented 8 years ago

As I cannot reproduce this and there is a single setf call in a little used function for renaming tags. I'm closing this for now until it comes biting me again.

wasamasa commented 7 years ago

I've managed to find a repro case for this:

Expected behavior: First workspace still shows two windows.

Actual behavior: First workspace has only one window.

Notes:

wasamasa commented 7 years ago

Tracing the window-state-put function reveals that this is not a bug, but a feature. If a window associated with a dead buffer is found, it's marked for later deletion and eventually deleted.

I'm not sure whether to bother reporting this behavior for further discussion. What I could do is processing the window configuration before saving it, then replace dead buffers, like by using the algorithm behind replace-buffer-in-windows or just always using the scratch buffer.