Fix minibuffer resizing.

* mouse.el (mouse-drag-line): Fix minibuffer resizing broken by
last change.
This commit is contained in:
Martin Rudalics 2011-10-22 11:43:09 +02:00
parent 804a4315bd
commit 42ee24ed38
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-10-22 Martin Rudalics <rudalics@gmx.at>
* mouse.el (mouse-drag-line): Fix minibuffer resizing broken by
last fix.
2011-10-21 Chong Yidong <cyd@gnu.org>
* progmodes/idlwave.el (idlwave-mode):

View file

@ -406,6 +406,7 @@ must be one of the symbols header, mode, or vertical."
(mouse-on-link-p start)))
(enlarge-minibuffer
(and (eq line 'mode)
(not resize-mini-windows)
(eq (window-frame minibuffer-window) frame)
(not (one-window-p t frame))
(= (nth 1 (window-edges minibuffer-window))
@ -422,7 +423,8 @@ must be one of the symbols header, mode, or vertical."
(setq done t)))
((eq line 'mode)
;; Check whether mode-line can be dragged at all.
(when (window-at-side-p window 'bottom)
(when (and (window-at-side-p window 'bottom)
(not enlarge-minibuffer))
(setq done t)))
((eq line 'vertical)
;; Get the window to adjust for the vertical case.