[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47300: delete-window to select window with same position
From: |
Juri Linkov |
Subject: |
bug#47300: delete-window to select window with same position |
Date: |
Wed, 19 May 2021 19:07:18 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> I can't find where `get-mru-window' is called during window deletion.
>
> It's here in `delete-window-internal'
>
> /* Now look whether `get-mru-window' gets us something. */
> mru_window = call1 (Qget_mru_window, frame);
Thanks, I missed it because I searched with 'C-x p g get-mru-window'
instead of 'C-x p g get.mru.window'.
>> Maybe a new option e.g. `delete-window-select' with type not boolean,
>> but a predicate with the default value `get-mru-window', and another
>> choice `delete-window-select-underlying' to select the "merged" window.
>
> `get-mru-window' is not a predicate. You probably mean a function so
> that someone could also use `get-lru-window' as value of that option?
Yes, a function to get a window to select after window deletion.
> The problem with such a function is that it has to be called with some
> predefined sort of FRAME or ALL-FRAMES argument so some explanatory
> footwork would be required.
It's fine to call it with a FRAME argument. The problem is
how to write such a function that will find the window that
gets the screen space previously owned by the deleted window.
Could you recommend the right direction? Maybe this window that
gets the screen space is just the parent of the deleted window?
- bug#47300: delete-window to select window with same position, Lars Ingebrigtsen, 2021/05/18
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/18
- bug#47300: delete-window to select window with same position, Juri Linkov, 2021/05/18
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/19
- bug#47300: delete-window to select window with same position,
Juri Linkov <=
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/19
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/22
- bug#47300: delete-window to select window with same position, Juri Linkov, 2021/05/22
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/23
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/25
- bug#47300: delete-window to select window with same position, Juri Linkov, 2021/05/26
- bug#47300: delete-window to select window with same position, martin rudalics, 2021/05/27
- bug#47300: delete-window to select window with same position, Juri Linkov, 2021/05/31