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: [rudalics@gmx.at: Re: [simon.marshall@misys.com: mouse-autoselect-window needs a de lay]] Date: Tue, 05 Sep 2006 11:21:43 +0200 Message-ID: <44FD41A7.5020100@gmx.at> References: <854pvpym4i.fsf@lola.goethe.zz> <44FBEEFC.3040205@gmx.at> NNTP-Posting-Host: main.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 1157448138 3778 80.91.229.2 (5 Sep 2006 09:22:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2006 09:22:18 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 05 11:22:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKX8C-0001dV-0i for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 11:22:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKX8B-0007dY-Fs for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 05:22:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKX7W-0007Nr-FO for emacs-devel@gnu.org; Tue, 05 Sep 2006 05:21:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKX7T-0007NG-V0 for emacs-devel@gnu.org; Tue, 05 Sep 2006 05:21:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKX7T-0007NC-M3 for emacs-devel@gnu.org; Tue, 05 Sep 2006 05:21:23 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GKXIB-0005ZH-Io for emacs-devel@gnu.org; Tue, 05 Sep 2006 05:32:27 -0400 Original-Received: (qmail invoked by alias); 05 Sep 2006 09:21:22 -0000 Original-Received: from N874P008.adsl.highway.telekom.at (EHLO [62.47.53.40]) [62.47.53.40] by mail.gmx.net (mp028) with SMTP; 05 Sep 2006 11:21:22 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: "Kim F. Storm" In-Reply-To: X-Y-GMX-Trusted: 0 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:59356 Archived-At: > To me it makes more sense if this "move and stop" is the default method > (ie. selected with a positive delay value). The negative value could > be for experts which want just the move delay. The absolute value of the delay is used to set up a timer whenever the mouse crosses a window border. Usually though, the mouse pointer already appears at a completely different position at the moment I install the timer. Unfortunately, I can't access that position easily. When the timer triggers I do (provided other conditions apply as well) - for a positive delay select the window, - for a negative delay check whether mouse-position is the same as the last time I checked. Now, the very first "last time I checked" occurs at the window border as I explained above. Hence the first time the timer fires, the recorded mouse-positions are usually _not_ equal and I have to restart the timer until they are. In practice this means that if I set the delay to -1 and move to the center of another window in a single stroke, the window is selected after 2 seconds which is more than 1 seconds after the mouse stopped moving. Since this is slightly counterintuitive I wouldn't want to make that the default. > But why not separate the two timeout settings, e.g. make it a cons with > the "move delay" in the car and "stopped delay" in the cdr. That's > easy to set via customize. Currently, there is only one delay. Do you think I should use two different delays?