all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: arne_bab@web.de, 9618@debbugs.gnu.org
Subject: bug#9618: 23.3; error: attempt to drag the rightmost scrollbar
Date: Wed, 28 Sep 2011 10:52:17 +0200	[thread overview]
Message-ID: <4E82E041.8050000@gmx.at> (raw)
In-Reply-To: <4E8230CE.5020505@swipnet.se>

 >> \C-x 3
 >> try to drag the left border of the right window with the left mouse
 >> button:
 >> “Attempt to drag the rightmost scrollbar”
 >>
 >> When I try to resize the windows, I get that error. When I have 3
 >> windows, I can resize the left two windows, but not the right one.
 >>
 >
 > For me it seems to be a matter of where the drag starts.  If it starts
 > just some pixels in to the rightmost windows mode line I get that message.
 > If I start the drag a few pixels to the left, in the mode line of the
 > window next to the rightmost window, I can resize the rightmost window.

What happens is that `mouse-drag-vertical-line' is too naive when
guessing the edge that shall be dragged from the START-EVENT argument.
If the window returned via (car (car (cdr start-event))) is the
rightmost window it simply complains if scrollbars are on the right.

In addition a check like

      ((and (eq which-side 'right)
	   (>= (nth 2 (window-inside-edges start-event-window))
	       (frame-width start-event-frame)))
       (error "Attempt to drag rightmost scrollbar"))

doesn't make any sense because it compares `frame-width' with window
edges, two things which are not comparable.  Finally, the routine
`mouse-drag-vertical-line-rightward-window' hardly DTRT either so the
entire code would probably have to be rewritten from scratch.  All this
would be much simpler if we had vertical divider lines in addition to
scrollbars :-(

BTW this bug is likely the same as #5357 so the two should be merged
despite of the fact that #5357 is tagged "emacs.ns".

martin






  reply	other threads:[~2011-09-28  8:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27 18:21 bug#9618: 23.3; error: attempt to drag the rightmost scrollbar Arne Babenhauserheide
2011-09-27 20:23 ` Jan Djärv
2011-09-28  8:52   ` martin rudalics [this message]
2011-10-15 10:27 ` martin rudalics
2011-10-21  9:31   ` martin rudalics

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E82E041.8050000@gmx.at \
    --to=rudalics@gmx.at \
    --cc=9618@debbugs.gnu.org \
    --cc=arne_bab@web.de \
    --cc=jan.h.d@swipnet.se \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.