1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858).

This commit is contained in:
Michael Olson 2008-10-08 05:03:43 +00:00
parent 1c86baa408
commit 5412419465
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-10-08 Michael Olson <mwolson@gnu.org>
* ibuffer.el (ibuffer-shrink-to-fit): Force redisplay, so that we
can avoid a bad interaction with programs that add functions to
the window-scroll-functions hook. This fixes Bug #858.
2008-10-07 Chong Yidong <cyd@stupidchicken.com>
* startup.el (command-line): Use display-warning to warn about an

View file

@ -1153,6 +1153,9 @@ a new window in the current frame, splitting vertically."
(ibuffer-redisplay t)))
(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)
(fit-window-to-buffer nil (when owin (/ (frame-height)
(length (window-list (selected-frame)))))))