GNU bug report logs - #6385
A slightly less aggressive fit-window-to-buffer

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Wed, 9 Jun 2010 19:05:02 UTC

Severity: wishlist

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: martin rudalics <rudalics <at> gmx.at>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#6385: closed (A slightly less aggressive fit-window-to-buffer)
Date: Tue, 11 Oct 2011 09:32:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 11 Oct 2011 11:31:01 +0200
with message-id <4E940CD5.5070800 <at> gmx.at>
and subject line Re: A slightly less aggressive fit-window-to-buffer
has caused the debbugs.gnu.org bug report #6385,
regarding A slightly less aggressive fit-window-to-buffer
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
6385: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6385
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: A slightly less aggressive fit-window-to-buffer
Date: Wed, 9 Jun 2010 20:56:51 +0200
[Message part 3 (text/plain, inline)]
I believe fit-window-to-buffer has become a bit upset and unnecessary
aggressive because of visual lines. It looks like it need a bit more
feedback from the display system to be really sure that the buffer is
entirely visible.

The attached patch is something I have used to get around the problem.
I am not sure it is the right thing but I am rather sure it does not
hurt.

Too see the problem it tries to fix just call the function with a
buffer larger than window and point below the window bottom (you have
to write a bit elisp code for that).

Of course we need a non-killing version of fit-window-to-buffer, but
for the moment this patch might be useful.
[windows-less-aggressive-fit-1.diff (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: 6385-done <at> debbugs.gnu.org
Subject: Re: A slightly less aggressive fit-window-to-buffer
Date: Tue, 11 Oct 2011 11:31:01 +0200
> Of course we need a non-killing version of fit-window-to-buffer, but
> for the moment this patch might be useful.

`fit-window-to-buffer' doesn't kill windows any more so this issue
should have been resolved.

martin


This bug report was last modified 13 years and 284 days ago.

Previous Next


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