[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51062: Customizable window resizing
From: |
Juri Linkov |
Subject: |
bug#51062: Customizable window resizing |
Date: |
Thu, 14 Oct 2021 19:01:19 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> Strange, when I tested the patch that you sent to emacs-devel,
>> it worked correctly. But after you applied the patch on master,
>> it doesn't work. I'm trying to debug why (window-height . nil)
>> has no effect on Help buffers.
>
> Indeed. I probably tried to optimize it before pushing. Should be
> fixed now.
Thanks, I confirm it's working now.
>>> But if 'display-buffer' is not involved, there isn't much we
>>> can do. Maybe something like 'display-buffer-same-window' _after_
>>> putting the buffer into the selected window, but this might not be 100%
>>> compatible. Certainly not for Emacs 28.
>>
>> This is a good idea to try. But not sure how this is possible to use in
>> vc-run-delayed that is called when the buffer was already displayed long ago.
>
> The problem is rather that 'display-buffer' wasn't used in the first
> place to show the buffer. Two things we could try to cover buffers that
> are shown via 'set-window-buffer' are
>
> - Invent a new buffer-local variable, say 'inhibit-temp-buffer-resize'
> with the obvious meaning.
>
> - Invent a new window parameter 'inhibit-temp-buffer-resize' with the
> obvious meaning.
Earlier I proposed to add a new hook whose default value contains
shrink-window-if-larger-than-buffer, so it can easily be removed from the hook.
- bug#51062: Customizable window resizing, Juri Linkov, 2021/10/06
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/07
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/13
- bug#51062: Customizable window resizing, Juri Linkov, 2021/10/13
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/14
- bug#51062: Customizable window resizing,
Juri Linkov <=
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/14
- bug#51062: Customizable window resizing, Juri Linkov, 2021/10/14
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/14
- bug#51062: Customizable window resizing, Juri Linkov, 2021/10/18
- bug#51062: Customizable window resizing, martin rudalics, 2021/10/18
- bug#51062: Customizable window resizing, Juri Linkov, 2021/10/19