unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: not too happy with Emacs 21 vertical-line dragging when scroll bars present
Date: Wed, 29 Sep 2004 10:54:03 -0700	[thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBGEHACGAA.drew.adams@oracle.com> (raw)

GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600) of 2004-07-26 on BERATUNG4,
Windows XP SP1.

This may be Windows specific; I don't know.

In Emacs 20, the mode line did not extend under a vertical scroll bar (or
under a vertical line) -- there was a small (~4mm) square that you could
drag with the mouse to resize the window.

In Emacs 21, this small but visible "drag handle" has disappeared. If you
position the mouse _very_ carefully along the mode line at the window
division, you can grab and drag the divider. However, this effective drag
handle is _very_ small and not obvious at all (only the cursor change
indicates its presence).

Also, if you have two horizontally adjacent windows and try to drag the
divider, you actually need to place the mouse slightly to the right of the
divider, so that it is well over the right mode line, not the left (even
though it is the left mode line that extends under the scroll bar). This is
not intuitive at all.

If you try to grab & drag directly under the scroll bar (as in Emacs 20),
you grab the left mode line, and nothing happens (no drag cursor). If you
grab slightly to the right of this, at the right edge of the scroll bar, in
the modeline (that is, _at_ the vertical line that separates the windows),
then you see the drag cursor (so everything looks OK), but you also get this
error message: "Attempt to drag leftmost scrollbar".

There is no reason for this. Intuitively, that is just what you _want_ to
do: drag the "leftmost" scrollbar - that is, drag the only vertical
separation you see between the two windows. You certainly don't want to (and
cannot) drag the _rightmost_ scrollbar/vertical line!

To be able to drag the vertical line, you must in fact grab it slightly to
the right of the visible vertical line, that is, to the right of the right
edge of the scroll bar, so that you are well over the right mode line. The
proper position appears to be at the right edge of the fringe! Dragging here
also activates the right mode line, for no reason that I can see. All of
this is not very intuitive.

__Any chance we can get back the small square of real estate under the
scroll bar as a drag handle?__   It was a great visual clue to the existence
of a drag handle, and it was large enough to function as such. Ideal would
be to put a tiny drag-handle-cursor image (<-->) in this square, and leave
it there all the time.


Related enhancement request: If we had the small, visible drag handle of
Emacs 20 (as suggested above), then we could bind not just
mouse-drag-vertical-line, but a command that does this:

(if (one-window-p t)
    (resize-frame)
  (mouse-drag-vertical-line start-event))

That is, if there is only one window, you can click this spot to resize the
frame to fit the selected window. (`resize-frame' is not yet part of Emacs,
but is available for inclusion --
http://www.emacswiki.org/elisp/resize-frame.el.)

 - Drew

             reply	other threads:[~2004-09-29 17:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 17:54 Drew Adams [this message]
2004-09-29 18:29 ` not too happy with Emacs 21 vertical-line dragging when scroll bars present Drew Adams
2004-09-30 15:59   ` Richard Stallman
2004-09-30 16:19     ` not too happy with Emacs 21 vertical-line dragging when scrollbars present Drew Adams

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=MEEKKIABFKKDFJMPIOEBGEHACGAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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).