GNU bug report logs - #37563
27.0.50; fit-frame-to-buffer does not account for line-spacing

Previous Next

Package: emacs;

Reported by: Ingo Lohmar <ingo.lohmar <at> posteo.net>

Date: Mon, 30 Sep 2019 19:34:01 UTC

Severity: normal

Found in version 27.0.50

Done: Ingo Lohmar <ingo.lohmar <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 37563 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Ingo Lohmar <ingo.lohmar <at> posteo.net>, 37563 <at> debbugs.gnu.org
Subject: Re: bug#37563: 27.0.50; fit-frame-to-buffer does not account for
 line-spacing
Date: Tue, 1 Oct 2019 09:32:08 +0200
[Message part 1 (text/plain, inline)]
> 1) When max-height is provided, the actual frame height is calculated in
> ll 8736ff of window.el (as of commit
> 5746202c182a9c69c732beb29b8507a6e6364799), and that just multiplies by
> the char-height, which excludes the line-spacing.  This is the buggy
> case.

I attached a fix.  Please try it.

Many thanks for the report, martin
[fit-frame-to-buffer.diff (text/plain, attachment)]

This bug report was last modified 5 years and 220 days ago.

Previous Next


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