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: Fri, 07 Sep 2007 11:16:44 +0200 Message-ID: <873axqhm2r.fsf@escher.local.home> References: <86abs1bd54.fsf@lola.quinscape.zz> <87myw1p8yb.fsf@escher.local.home> <46DEEF9F.5060904@gmx.at> <87r6lc0zqr.fsf@escher.local.home> <46DFF0FF.6060502@gmx.at> <87lkbj27zc.fsf@escher.local.home> <46E01859.1050709@gmx.at> <87d4wv238e.fsf@escher.local.home> <46E0395D.7010704@gmx.at> <878x7j1wr9.fsf@escher.local.home> <46E06708.8000001@gmx.at> <87zlzzz9ho.fsf@escher.local.home> <46E0F50F.4020701@gmx.at> <878x7ihp6q.fsf@escher.local.home> <46E11199.6060306@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189156658 6664 80.91.229.12 (7 Sep 2007 09:17:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 09:17:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 11:17:37 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 1ITZxu-0008M6-Sw for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 11:17:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITZxt-0001st-9S for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 05:17:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITZxp-0001sn-KM for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:17:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITZxn-0001sb-Bn for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:17:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITZxn-0001sY-2X for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:17:19 -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 1ITZxm-00015X-6D for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:17:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ITZxX-0007Us-3G for emacs-devel@gnu.org; Fri, 07 Sep 2007 11:17:03 +0200 Original-Received: from 87.123.210.255 ([87.123.210.255]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Sep 2007 11:17:03 +0200 Original-Received: from Stephen.Berman by 87.123.210.255 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Sep 2007 11:17:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 87.123.210.255 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:78125 Archived-At: On Fri, 07 Sep 2007 10:53:45 +0200 martin rudalics wrote: >> I don't understand what you mean by "autoselection should continue >> looping", nor what harm it doesn't cause. > > When window is nil this should mean that the mouse-pointer was not > hovering over one of Emacs' windows. When I have seen window being nil in edebug, the mouse-pointer was hovering over an Emacs window, AFAICT. Unfortunately, the nil value is sporadic, I don't know how to induce it (when, as I believe was the case, the mouse-pointer is over an Emacs window). > In this case I continue > mouse-tracking until the mouse-pointer reenters a window (a similar > scenario applies when the mouse-pointer is over the scroll-bar). In any > of these cases window selection shouldn't occur. Perhaps the mouse-pointer was indeed over the scroll-bar, or maybe the tool bar or menu bar, is it the same with these, too? I will take another look at this. >> Too bad, I often find edebug really helpful. Oh well, guess I just >> have to dirty my hands more with the code :-) > > What we have to find out is whether it stays within the > mouse-autoselect-window code and, for example, issues multiple calls of > `select-window' in `handle-select-window' (this would be a bug in the > implementation of `mouse-autoselect-window-state') or it already left > the mouse-autoselect-window code and `select-window' doesn't DTRT here. I will try to do this sometime today, time permitting. Steve Berman