[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7218: 24.0.50; Weird window resizing with ibuffer-auto-mode
From: |
Lars Ingebrigtsen |
Subject: |
bug#7218: 24.0.50; Weird window resizing with ibuffer-auto-mode |
Date: |
Wed, 02 Jun 2021 10:55:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#7218: 24.0.50; Weird window resizing with ibuffer-auto-mode,
Lars Ingebrigtsen <=