diff options
| author | Richard M. Stallman | 2006-02-13 18:47:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-02-13 18:47:18 +0000 |
| commit | ad64cd77b0d31794b2a57c6f25efa5d6138459a6 (patch) | |
| tree | 82b31cb337ac3bd36dd118ad6700bf635341b8ae | |
| parent | 25d346437329083b623d6e051f0acf71d35364b6 (diff) | |
| download | emacs-ad64cd77b0d31794b2a57c6f25efa5d6138459a6.tar.gz emacs-ad64cd77b0d31794b2a57c6f25efa5d6138459a6.zip | |
(mouse-drag-mode-line-1): Use mouse-drag-move-window-bottom
for the minibuffer too, but not if resize-mini-windows will interfere.
| -rw-r--r-- | lisp/mouse.el | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 9922b0f9aed..3a22fb49b04 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -481,21 +481,8 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line." | |||
| 481 | 481 | ||
| 482 | ;; grow/shrink minibuffer? | 482 | ;; grow/shrink minibuffer? |
| 483 | (if should-enlarge-minibuffer | 483 | (if should-enlarge-minibuffer |
| 484 | (progn | 484 | (unless resize-mini-windows |
| 485 | ;; yes. briefly select minibuffer so | 485 | (mouse-drag-move-window-bottom start-event-window growth)) |
| 486 | ;; enlarge-window will affect the | ||
| 487 | ;; correct window. | ||
| 488 | (select-window minibuffer) | ||
| 489 | ;; scale back shrinkage if it would | ||
| 490 | ;; make the minibuffer less than 1 | ||
| 491 | ;; line tall. | ||
| 492 | (if (and (> growth 0) | ||
| 493 | (< (- (window-height minibuffer) | ||
| 494 | growth) | ||
| 495 | 1)) | ||
| 496 | (setq growth (1- (window-height minibuffer)))) | ||
| 497 | (enlarge-window (- growth)) | ||
| 498 | (select-window start-event-window)) | ||
| 499 | ;; no. grow/shrink the selected window | 486 | ;; no. grow/shrink the selected window |
| 500 | ;(message "growth = %d" growth) | 487 | ;(message "growth = %d" growth) |
| 501 | (if mode-line-p | 488 | (if mode-line-p |