GNU bug report logs - #36859
Customizable fit-window-to-buffer

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 30 Jul 2019 20:40:02 UTC

Severity: wishlist

Tags: patch

Merged with 51062, 52855

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: 36859 <at> debbugs.gnu.org
Subject: bug#36859: Customizable fit-window-to-buffer
Date: Tue, 6 Aug 2019 11:00:25 +0200
> Before disabling window shrinking we need to support its
> customization, so shrinking could be enabled easily
> by anyone who wants it.

Doing this via 'display-buffer' is hardly feasible: We would have to
provide some magic that adds the (window-height) and (window-width)
functionalities to the sentinel of the process.  vc.el uses an advice
for that and I'm afraid that's one step too far for `display-buffer'.

The only practicable solution IMHO is to provide a plain
'vc-adjust-window-size-function' option defaulting to
'shrink-window-if-larger-than-buffer' and allowing 'ignore' and
'fit-window-to-buffer' as alternatives.

martin




This bug report was last modified 3 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.