* `mouse-drag-mode-line-1' doesn't handle dragging header-line up
@ 2002-11-21 11:01 John Paul Wallington
2002-11-22 21:00 ` Richard Stallman
0 siblings, 1 reply; 3+ messages in thread
From: John Paul Wallington @ 2002-11-21 11:01 UTC (permalink / raw
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-23 4:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21 11:01 `mouse-drag-mode-line-1' doesn't handle dragging header-line up John Paul Wallington
2002-11-22 21:00 ` Richard Stallman
2002-11-23 4:48 ` John Paul Wallington
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).