From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup 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 15:12:17 +0200 Message-ID: <85d5aalaoe.fsf@lola.goethe.zz> References: <854pvpym4i.fsf@lola.goethe.zz> <44FBEEFC.3040205@gmx.at> <44FD41A7.5020100@gmx.at> <44FD7365.10901@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157462041 19104 80.91.229.2 (5 Sep 2006 13:14:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2006 13:14:01 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 05 15:14:00 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 1GKakF-0001jV-GQ for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 15:13:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKakE-0003xv-LD for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 09:13:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKak4-0003va-9i for emacs-devel@gnu.org; Tue, 05 Sep 2006 09:13:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKak3-0003uS-J9 for emacs-devel@gnu.org; Tue, 05 Sep 2006 09:13:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKak3-0003uJ-Da for emacs-devel@gnu.org; Tue, 05 Sep 2006 09:13:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKaun-0005kE-V2 for emacs-devel@gnu.org; Tue, 05 Sep 2006 09:24:34 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GKajv-0003Ys-Ad; Tue, 05 Sep 2006 09:13:19 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 972591C4D3A4; Tue, 5 Sep 2006 15:12:17 +0200 (CEST) Original-To: martin rudalics In-Reply-To: <44FD7365.10901@gmx.at> (martin rudalics's message of "Tue, 05 Sep 2006 14:53:57 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:59369 Archived-At: martin rudalics writes: >> Don't (mouse-position) or (mouse-pixel-position) give the current position >> when you install the timer? > > No. I use `mouse-position' and it gives the position where the mouse > pointer crosses the window border, in the window I move to. I didn't > try `mouse-pixel-position' but IMO it would be a bug if it did refer to > another position. > >>>When the timer triggers I do (provided other conditions apply as well) >>> >>>- for a positive delay select the window, >> >> >> Do we really need that option? > > A simple delay is standard for focus follows mouse policies. I don't > really want to omit that. It is not at all standard. For example, GNOME does not offer anything like that in its Window Preferences. What it _does_ offer is a dialog Window Selection [ ] Select windows when the mouse moves over them [ ] Raise selected windows after an interval Interval before raising: [0.0-10.0, default 0.5] seconds Deactivating any of those lines will deactivate the following lines. The default is "off" for all options. I actually know of no window manager offering a delay before select. If at all, they have delay before raise. Raising a window is an action that changes the window configuration, so avoiding unintentional raising is a good idea there. The equivalent of window raising in Emacs would probably be something like delete-other-windows (which we certainly would not want to do) or other window-configuration changing things. > You can always set the delay to a very small value. In my > experience less than 0.2 seconds never sensibly delays selection but > may select the window too quickly. It depends on your mouse mileage > though, personally I like nervous mice. And unloaded machines and non-networked X11 connections. But not everybody is running Emacs on a machine of his dreams all of the time. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum