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: focus-follows-mouse Date: Mon, 05 May 2008 22:01:18 +0200 Message-ID: <85skww7c6p.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210017707 326 80.91.229.12 (5 May 2008 20:01:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 May 2008 20:01:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 05 22:02:22 2008 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 1Jt6t4-00033a-IA for ged-emacs-devel@m.gmane.org; Mon, 05 May 2008 22:02:14 +0200 Original-Received: from localhost ([127.0.0.1]:48955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt6sN-0006xy-2J for ged-emacs-devel@m.gmane.org; Mon, 05 May 2008 16:01:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jt6sJ-0006xh-Q2 for emacs-devel@gnu.org; Mon, 05 May 2008 16:01:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jt6sF-0006xE-Ck for emacs-devel@gnu.org; Mon, 05 May 2008 16:01:27 -0400 Original-Received: from [199.232.76.173] (port=60857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt6sF-0006xB-3w for emacs-devel@gnu.org; Mon, 05 May 2008 16:01:23 -0400 Original-Received: from mail-in-01.arcor-online.net ([151.189.21.41]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jt6sE-0004IL-GA for emacs-devel@gnu.org; Mon, 05 May 2008 16:01:22 -0400 Original-Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 9DCFA104B70; Mon, 5 May 2008 22:01:20 +0200 (CEST) Original-Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 90FC111414F; Mon, 5 May 2008 22:01:20 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-023-121.pools.arcor-ip.net [84.61.23.121]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 5215135E72E; Mon, 5 May 2008 22:01:20 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 7004B1CC1A23; Mon, 5 May 2008 22:01:19 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Mon, 05 May 2008 15:06:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/7035/Mon May 5 19:47:07 2008 on mail-in-06.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:96528 Archived-At: Stefan Monnier writes: >> I just noticed that I need to click the mouse to switch the focus >> between emacs windows (as opposed to emacs frames/X windows which are >> switched between based on the mouse movement). >> Even though the documentation of focus-follows-mouse makes it abundantly >> clear that this is not the intent of the variable, I think it would be >> better if emacs switched the emacs window focus based on mouse movement >> when this variable is set to non-nil. > > You mean that mouse-autoselect-window should default to the value of > focus-follows-mouse? > > This has been proposed and it might make sense, but I'm not sure it's > a good idea: just like focus-follows-mouse is problematic in MacOS > (because you may need to move the mouse over some other frame just in > order to access the menu-bar), mouse-autoselect-window is problematic > because you may need to move your mouse over another window in order > to reach the menu-bar. Not just that. In my window manager, I prefer lazy focus, which means that accidental movement of the mouse does not cause any change on workspaces with a single Emacs frame and no other windows (where the track pad feels touched sometimes, this is quite important). mouse-autoselect-window would disturb me. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum