You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'q' key that is binded to quit-window function in many RO buffers behaves wrong with spaces.
The easiest way to reproduce it is to open some file, enter dired, push q -> it should go back to the opened file.
Now open the same file, enter dired, change space, return back to the previous one, hit 'q'. It won't go the file as previous. It will go back to some buffer that was visible in the other space.
EDIT: It doesn't seem to have anything to do with quit-restore parameter as I originally though. It seems to have something with (window-prev-buffers). Probably it would have to be saved by hand :-/
The text was updated successfully, but these errors were encountered:
Havner
changed the title
Spaces: the quit-restore window parameter is not saved/restored
Spaces: the quit-window function doesn't work properly for windows restored by spaces
Feb 7, 2019
Hmm, right, I see the problem. Some potential solutions:
Make current-window-configuration/set-window-configuration save and restore the previous and next buffer lists. Spaces is mostly just a thin wrapper around set-window-configuration. It's weird that set-window-configuration doesn't already preserve that state.
Save and restore the prev/next buffer lists ourselves. This shouldn't be very hard to implement, though we may need to take extra care to handle buffers which get killed between the save/restore.
My emacs usage has changed over the years and I don't use the Spaces library much anymore, so I don't feel urgency to work on it. If you have a reasonable patch I'd be happy to take it.
The 'q' key that is binded to quit-window function in many RO buffers behaves wrong with spaces.
The easiest way to reproduce it is to open some file, enter dired, push q -> it should go back to the opened file.
Now open the same file, enter dired, change space, return back to the previous one, hit 'q'. It won't go the file as previous. It will go back to some buffer that was visible in the other space.
EDIT: It doesn't seem to have anything to do with quit-restore parameter as I originally though. It seems to have something with (window-prev-buffers). Probably it would have to be saved by hand :-/
The text was updated successfully, but these errors were encountered: