bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51062: Customizable window resizing


From: martin rudalics
Subject: bug#51062: Customizable window resizing
Date: Fri, 31 Dec 2021 10:12:16 +0100

>>> Actually, the right name was 'vc-post-process-functions'
>>> proposed in bug#36859 (merged).
>>
>> You mean to run 'shrink-window-if-larger-than-buffer' from that hook
>> unless the user removed it?
>
> The problem is that the argument of this function should be a buffer,
> not a window as in 'shrink-window-if-larger-than-buffer'.
> This is why bug#52855 proposed to add a new function
>
>    shrink-buffer-if-larger-than-buffer
>
> But not sure if this should be added to window.el,
> or better to leave in vc.el with the name vc-shrink-buffer?

"shrink-buffer-if-larger-than-buffer"?  Maybe this should become
'shrink-buffer-window-if-larger-than-buffer' then.  With the usual
problem what to do when there are two windows showing that buffer.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]