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: Re: Emacs 22.1 spit window mouse resize Date: Sat, 09 Jun 2007 10:35:07 +0200 Message-ID: <466A663B.2050801@gmx.at> References: <4667C7A6.3050204@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181378282 12175 80.91.229.12 (9 Jun 2007 08:38:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2007 08:38:02 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 10:38:00 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HwwSL-0003dL-RX for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2007 10:38:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwwSK-0000iK-In for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2007 04:37:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwwSH-0000dt-Dn for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2007 04:37:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwwSF-0000Ym-D4 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2007 04:37:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwwSF-0000YD-6e for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2007 04:37:51 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HwwS8-0004Lw-Hs for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2007 04:37:46 -0400 Original-Received: (qmail invoked by alias); 09 Jun 2007 08:37:39 -0000 Original-Received: from N913P019.adsl.highway.telekom.at (EHLO [62.47.58.19]) [62.47.58.19] by mail.gmx.net (mp020) with SMTP; 09 Jun 2007 10:37:39 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/IhEsNDs/ISJtjypNTYZxezcVLVJ4whDfhYIFfwF Cli622aW9MWgST User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15798 Archived-At: > I think that dragging the mode line up or down > should not change the selected window. If it does select a window, > that's a bug. > > I tried to fix this bug, using mouse-drag-move-window-top > to avoid the need to temporarily select a window inside > mouse-drag-mode-line-1. Why does it select a window? Because of (global-set-key [mode-line drag-mouse-1] 'mouse-select-window) Is there any need for this barely sensical binding? In this context: 1. Has the drag-mouse-1 concept where I can drag an object _without_ keeping the button depressed been abandoned for modelines and dividers? Is there a reasonable way to implement it? Clicking button-1 again to stop the drag would simply have to do _nothing_. But this would apparently conflict with ;; Binding mouse-1 to mouse-select-window when on mode-, header-, or ;; vertical-line prevents Emacs from signaling an error when the mouse ;; button is released after dragging these lines, on non-toolkit ;; versions. (global-set-key [mode-line mouse-1] 'mouse-select-window) 2. Is there any way to drag vertical dividers in a more convenient way than to move the mouse cursor to a tiny area on the mode-line? I could conceive to move vertical dividers either by dragging a fringe (provided it's there) or by dragging scroll bars "horizontally" (thus trying to distinguish merely x- and merely y- increments). I tried a slightly enhanced `mouse-drag-vertical-line' with the following bindings (global-set-key [right-fringe down-mouse-1] 'mouse-drag-right-fringe) (global-set-key [left-fringe down-mouse-1] 'mouse-drag-left-fringe) and it works well though it might conflict with `gdb-ui' bindings.