unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: martin rudalics <rudalics@gmx.at>
Cc: Tassilo Horn <tassilo@member.fsf.org>, 7218@debbugs.gnu.org
Subject: bug#7218: 24.0.50; Weird window resizing with ibuffer-auto-mode
Date: Wed, 02 Jun 2021 10:55:04 +0200	[thread overview]
Message-ID: <87sg20d4t3.fsf@gnus.org> (raw)
In-Reply-To: <4CB7F602.2010209@gmx.at> (martin rudalics's message of "Fri, 15 Oct 2010 08:34:42 +0200")

martin rudalics <rudalics@gmx.at> writes:

> It happens because `ibuffer-shrink-to-fit' shrinks the selected window
> regardless of the buffer it displays.  I suppose doing something like
>
> (defun ibuffer-shrink-to-fit (&optional owin)
>   ;; Make sure that redisplay is performed, otherwise there can be a
>   ;; bad interaction with code in the window-scroll-functions hook
>   (redisplay t)
>   (when (with-current-buffer (window-buffer)
> 	  ibuffer-auto-mode)
>     (fit-window-to-buffer nil (when owin (/ (frame-height)
> 					    (length (window-list (selected-frame))))))))
>
> would cure it.

It did indeed, so I've now pushed a fix similar to this to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-06-02  8:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 18:11 bug#7218: 24.0.50; Weird window resizing with ibuffer-auto-mode Tassilo Horn
2010-10-15  6:34 ` martin rudalics
2021-06-02  8:55   ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sg20d4t3.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=7218@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).