GNU bug report logs -
#79125
quit-window fails to restore window height in a scenario of buffer reuse
Previous Next
Full log
Message #44 received at 79125 <at> debbugs.gnu.org (full text, mbox):
On 30/07/2025 20:58, Juri Linkov wrote:
>>>> Does anybody agree that steps 7 and/or 9 behave suboptimally? Can that be improved?
>>> It can be improved but that would be expensive. 'window-prev-buffers'
>>> would have to return the height (and possibly the weight) of the window
>>> in addition to the start and point positions - that is, we'd have to
>>> store five instead of three values per buffer.
>> That only applies to buffers that were previously displayed in some window,
>> right?
> Ideally, auto-resizing should be window+buffer-local.
> And as soon as switching from the auto-resized buffer
> to another buffer in the same window, the original
> window height should be restored.
Might conflict with some user customizations (e.g. what if they make
another window selected right after some of these commands?) or mouse
clicks (you click in another window, the handler quits the current
window and resizes it so that your click is not within the current
window's box, creating an ambiguous situation).
Could work, but sounds like a significant change.
This bug report was last modified 9 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.