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:
parent
1c86baa408
commit
5412419465
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue