From: jpw@shootybangbang.com (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 [thread overview]
Message-ID: <E18Ep51-00031L-00@bundalo.shootybangbang.com> (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
next reply other threads:[~2002-11-21 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 11:01 John Paul Wallington [this message]
2002-11-22 21:00 ` `mouse-drag-mode-line-1' doesn't handle dragging header-line up Richard Stallman
2002-11-23 4:48 ` John Paul Wallington
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E18Ep51-00031L-00@bundalo.shootybangbang.com \
--to=jpw@shootybangbang.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).