GNU bug report logs -
#47300
delete-window to select window with same position
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 21 Mar 2021 21:15:02 UTC
Severity: minor
Tags: fixed, patch
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
> People still have trouble with unpredictable behavior of 'C-x 0'
> that selects an unexpected window after the current window is deleted.
>
> This is a recent example:
> https://old.reddit.com/r/emacs/comments/m8omt0/how_can_deletewindow_cx_0_be_configured_to_stay/
>
> The previous failed attempt to fix this was in bug#32790.
>
> I still don't understand the current logic what window is selected
> after deleting the selected window with 'C-x 0'.
`C-x 0' isn't a command I use much, so I don't really have much
intuition about how it's supposed to work. But, indeed, playing around
with it, it seems unexpected that `C-x 0' selects a different window
(instead of remaining in the "merged" window).
> Maybe something like this could be adapted to delete-window
> by adding an optional interactive argument keep-pos:
If I'm reading that patch correctly (I haven't actually tested), that
seems more DWIM to me. Perhaps Martin has some comments here; added to
the CCs. (And if anybody else has an opinion here, please do chime in.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.