From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#9618: 23.3; error: attempt to drag the rightmost scrollbar Date: Wed, 28 Sep 2011 10:52:17 +0200 Message-ID: <4E82E041.8050000@gmx.at> References: <87vcsd7sn8.wl%arne_bab@web.de> <4E8230CE.5020505@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317200000 12319 80.91.229.12 (28 Sep 2011 08:53:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Sep 2011 08:53:20 +0000 (UTC) Cc: arne_bab@web.de, 9618@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 28 10:53:16 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8ptD-0000ss-CP for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2011 10:53:15 +0200 Original-Received: from localhost ([::1]:49362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ptC-0004dI-TH for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2011 04:53:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ptA-0004cf-FX for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 04:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8pt8-0002xO-LW for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 04:53:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8pt7-0002wr-Mm for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 04:53:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R8pty-0003bb-R3 for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 04:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Sep 2011 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9618-submit@debbugs.gnu.org id=B9618.131720000413788 (code B ref 9618); Wed, 28 Sep 2011 08:54:02 +0000 Original-Received: (at 9618) by debbugs.gnu.org; 28 Sep 2011 08:53:24 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R8ptL-0003aK-D5 for submit@debbugs.gnu.org; Wed, 28 Sep 2011 04:53:23 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R8ptG-0003Zw-NC for 9618@debbugs.gnu.org; Wed, 28 Sep 2011 04:53:21 -0400 Original-Received: (qmail invoked by alias); 28 Sep 2011 08:52:22 -0000 Original-Received: from 62-47-47-70.adsl.highway.telekom.at (EHLO [62.47.47.70]) [62.47.47.70] by mail.gmx.net (mp018) with SMTP; 28 Sep 2011 10:52:22 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19uADsjXSFuyNvQeOtGZxyxjGbyMZ9RKAKyNOjLWR PTDygCHSbNujzP User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4E8230CE.5020505@swipnet.se> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 28 Sep 2011 04:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51951 Archived-At: >> \C-x 3 >> try to drag the left border of the right window with the left mouse >> button: >> =E2=80=9CAttempt to drag the rightmost scrollbar=E2=80=9D >> >> 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 mess= age. > 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= =2E 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) (>=3D (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