From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window Date: Fri, 07 Sep 2007 11:33:58 +0200 Message-ID: <46E11B06.60602@gmx.at> 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> <873axqhm2r.fsf@escher.local.home> 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 1189157659 9651 80.91.229.12 (7 Sep 2007 09:34:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 09:34:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 11:34:19 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 1ITaEE-0003YP-OX for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 11:34:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITaED-0003C6-9E for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 05:34:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITaCz-00022G-6T for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:33:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITaCw-0001zM-6t for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:32:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITaCv-0001yY-N5 for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:32:57 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ITaCu-0003pW-Ip for emacs-devel@gnu.org; Fri, 07 Sep 2007 05:32:56 -0400 Original-Received: (qmail invoked by alias); 07 Sep 2007 09:32:55 -0000 Original-Received: from N909P012.adsl.highway.telekom.at (EHLO [62.47.57.140]) [62.47.57.140] by mail.gmx.net (mp019) with SMTP; 07 Sep 2007 11:32:55 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18B57AOkjoBp7pbSwuy4fkav4zBqq0Skd1wyhZGzZ Wl5H2ymBy+wLrD User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <873axqhm2r.fsf@escher.local.home> X-Y-GMX-Trusted: 0 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:78126 Archived-At: > 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). The nil value comes from `mouse-position' and `window-at'. Processing these is not 100% reliable hence there's another condition-case around them. Hence it's not clear whether there really was no window or `window-at' failed. >> 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. I didn't care about the tool bar, it might cause troubles. The menu bar should not be part of any window. I only handle scroll bar and popped up menus (which could shadow part of a window).