Subject: bug#36859: Customizable fit-window-to-buffer

From: Juri Linkov <[email-masked]>
Date: Tue, 30 Jul 2019 23:23:03 +0300

It's a nice feature when fit-window-to-buffer resizes temporary windows
that go away after exiting the minibuffer.

OTOH, resizing permanent windows does more harm, because these windows
can be reused later for other buffers, but their size remains too narrow.

I'm not asking to change the default behavior, but it should be customizable.

Current examples of such behavior include:

- ‘C-h f’ (describe-function) diminishes the bottom vertically-split Help window;

- ‘C-x v l’ (vc-print-log) diminishes the log window if it contains a few entries;

- ‘C-x v =’ (vc-diff) diminishes the height of the diff window;

...