From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window Date: Tue, 18 Sep 2007 12:16:46 +0200 Message-ID: <87ps0gxoq9.fsf@escher.local.home> References: <86abs1bd54.fsf@lola.quinscape.zz> <87myw1p8yb.fsf@escher.local.home> <46EF781A.2050306@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190110746 23459 80.91.229.12 (18 Sep 2007 10:19:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2007 10:19:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 18 12:19:05 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXaAY-0002Dd-VG for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 12:19:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXaAV-0004Yb-6A for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 06:18:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXaAS-0004YI-3u for emacs-devel@gnu.org; Tue, 18 Sep 2007 06:18:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXaAO-0004VF-Mf for emacs-devel@gnu.org; Tue, 18 Sep 2007 06:18:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXaAO-0004VC-Gy for emacs-devel@gnu.org; Tue, 18 Sep 2007 06:18:52 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXaAO-0001am-2m for emacs-devel@gnu.org; Tue, 18 Sep 2007 06:18:52 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXa9m-0001vC-LQ for emacs-devel@gnu.org; Tue, 18 Sep 2007 12:18:14 +0200 Original-Received: from i577bf21f.versanet.de ([87.123.242.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 12:18:14 +0200 Original-Received: from Stephen.Berman by i577bf21f.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 12:18:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bf21f.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79186 Archived-At: On Tue, 18 Sep 2007 09:02:50 +0200 martin rudalics wrote: > I'm afraid that autoselection between windows of the same frame only > is somewhat very difficult to achieve. The attached patch should > correct the behavior observed by Drew though. Could you please try? I applied the patch to window.el of the released Emacs 22.1, since I don't have the EMACS_22_BASE source, byte-compiled the file and redumped emacs. Now when I make mouse-autoselect-window t and focus-follows-mouse nil, then moving the mouse from one frame to another raises the latter without putting it in focus. But in the newly raised frame the mode line of the window the mouse is over still becomes active and the tool bar still changes appropriately. Do you consider this correct behavior? Moreover, when I make mouse-autoselect-window a number, the behavior is strange and rather complicated: if the unfocussed frame does not have split windows, then it does not get raised when the mouse is moved over it; if it does have split windows, then moving the mouse over it always raises it after the delay, but only if I alternate between which of the split windows I first move the mouse over -- if I try moving over the same window first as I did the previous time, it mostly does not get raised, but sometimes does, suggesting a timing issue. And moving the mouse back from the unfocussed to the focussed frame shows the same behavior with respect to raising (i.e., only if it is split and with the same alternation and timing issues). And as above, the active mode line and the tool bar change regardless of focus or raised-ness. BTW, sorry I have followed up on testing your previous patch; I didn't get any further using edebug and haven't had time to try to understand how the code works. But I'd be happy to try out any specific instructions. Steve Berman