From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: RE: not too happy with Emacs 21 vertical-line dragging when scroll bars present Date: Wed, 29 Sep 2004 11:29:09 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1096482593 5847 80.91.229.6 (29 Sep 2004 18:29:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2004 18:29:53 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 29 20:29:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CCjCn-00046x-00 for ; Wed, 29 Sep 2004 20:29:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCjJ8-00020y-2x for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2004 14:36:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCjJ5-00020S-76 for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2004 14:36:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCjJ3-0001zy-4N for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2004 14:36:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCjJ2-0001zk-U4 for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2004 14:36:00 -0400 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCjCS-0007Vc-A0 for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2004 14:29:12 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8TITAWw029526 for ; Wed, 29 Sep 2004 11:29:10 -0700 Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8TITAhT013027 for ; Wed, 29 Sep 2004 12:29:10 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i8TIT9G5013013 for ; Wed, 29 Sep 2004 12:29:10 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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 Xref: main.gmane.org gmane.emacs.bugs:9125 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9125 Update - I don't know why, but I've tried this again and cannot reproduce the "Attempt to drag leftmost scrollbar" error in another Emacs session. I still have an Emacs session open that gives me the error (systematically), but when I try on new sessions (same version of Emacs, and -q in all cases), I don't get the error message. Here's the backtrace (although it's not very helpful): Debugger entered--Lisp error: (error "Attempt to drag leftmost scrollbar") signal(error ("Attempt to drag leftmost scrollbar")) error("Attempt to drag leftmost scrollbar") mouse-drag-vertical-line((down-mouse-1 (# vertical-line (300 . 344) 7448410 nil 342 (0 . 8) nil (0 . 215) (1 . 16)))) call-interactively(mouse-drag-vertical-line) In the session with the bug, the only buffers I have are these: *Help*, *info*, *scratch*, and *Messages*. I have default values for everything, and I have a single frame split vertically with *info* at the bottom, *Help* at the top left, and *scratch* at the top right (although I doubt that is significant). In case it helps, I've included the *Messages* buffer contents, below. I don't remember having done anything special, but, as I say, I can't seem to reproduce it in other Emacs sessions. Also, in the non-bugged sessions, the drag-handle is closer to where it should be: you do not need to grab over the right mode line (in fact, you cannot); you must grab at the mode-line division or slightly to the left. In any case, I still would like to see a visible drag handle area, as I described, even in the case of a single-window frame. HTH, - Drew -------------------8<---------*Messages* buffer------------- Searching subfile emacs-5... Searching subfile emacs-6... Searching subfile emacs-7... Searching subfile emacs-8... Searching subfile emacs-9... Searching subfile emacs-10... Searching subfile emacs-11... Searching subfile emacs-12... Searching subfile emacs-13... Searching subfile emacs-14... Searching subfile emacs-15... Searching subfile emacs-16... Searching subfile emacs-17... Searching subfile emacs-18... Searching subfile emacs-19... Searching subfile emacs-20... Searching subfile emacs-21... Searching subfile emacs-22... Searching subfile emacs-23... Searching subfile emacs-24... Searching subfile emacs-25... Searching subfile emacs-26... Searching subfile emacs-27... Quit [2 times] Loading debug...done Entering debugger... Back to top level. Entering debugger... Back to top level. nil [2 times] mouse-drag-vertical-line: Attempt to drag leftmost scrollbar [9 times] Type C-x 4 b RET to restore the other window. C-M-v to scroll the help. mouse-drag-vertical-line: Attempt to drag leftmost scrollbar [2 times] Note, built-in variable `x-use-underline-position-properties' not bound Debug on Error enabled Entering debugger... mouse-drag-vertical-line: Attempt to drag leftmost scrollbar Back to top level. Entering debugger... Back to top level. Entering debugger... Debug on Error enabled Entering debugger... Back to top level. Entering debugger... byte-code: Buffer is read-only: # Back to top level. Debug on Error disabled mouse-drag-vertical-line: Attempt to drag leftmost scrollbar [5 times] -------------------8<---------end *Messages* buffer------------- -----Original Message----- From: Drew Adams [mailto:drew.adams@oracle.com] Sent: Wednesday, September 29, 2004 10:54 AM To: emacs-devel@gnu.org; help-gnu-emacs@gnu.org; bug-gnu-emacs@gnu.org Subject: not too happy with Emacs 21 vertical-line dragging when scroll bars present 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