[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`mouse-drag-mode-line-1' doesn't handle dragging header-line up
From: |
John Paul Wallington |
Subject: |
`mouse-drag-mode-line-1' doesn't handle dragging header-line up |
Date: |
Thu, 21 Nov 2002 11:01:07 +0000 |
Presently in HEAD, `mouse-drag-mode-line-1' doesn't handle dragging
the header-line up, only down.
We could partially revert to RC, like so:
--- /build-emacs/emacs/lisp/mouse.el.~1.241.~ Wed May 29 17:36:55 2002
+++ /build-emacs/emacs/lisp/mouse.el Thu Nov 21 10:34:56 2002
@@ -438,8 +438,10 @@
(select-window start-event-window))
;; no. grow/shrink the selected window
;(message "growth = %d" growth)
- (mouse-drag-move-window-bottom start-event-window growth))
-
+ (if mode-line-p
+ (mouse-drag-move-window-bottom start-event-window growth)
+ (enlarge-window growth)))
+
;; if this window's growth caused another
;; window to be deleted because it was too
;; short, rescind the change.
Or instead of using `enlarge-window' in the nil `mode-line-p' case we
could use `mouse-drag-move-window-bottom' but move the window above,
like so:
(mouse-drag-move-window-bottom
(mouse-drag-window-above start-event-window) (- growth))
Or maybe there is a better fix. WDYT?
--
John Paul Wallington
- `mouse-drag-mode-line-1' doesn't handle dragging header-line up,
John Paul Wallington <=