From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: mouse-autoselect-window Date: Tue, 4 Sep 2007 22:53:14 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188971647 32682 80.91.229.12 (5 Sep 2007 05:54:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 05:54:07 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 07:54:07 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 1ISnpy-0008F8-JQ for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 07:54:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISnpx-0002HI-4i for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 01:54:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISnpt-0002GY-0i for emacs-devel@gnu.org; Wed, 05 Sep 2007 01:53:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISnpn-0002Fe-JN for emacs-devel@gnu.org; Wed, 05 Sep 2007 01:53:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISnpn-0002FY-GN for emacs-devel@gnu.org; Wed, 05 Sep 2007 01:53:51 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISnpm-0006K8-Ce for emacs-devel@gnu.org; Wed, 05 Sep 2007 01:53:51 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l855rl37000642 for ; Wed, 5 Sep 2007 00:53:47 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l855PONT028017 for ; Tue, 4 Sep 2007 23:53:47 -0600 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-152.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3183360631188971592; Tue, 04 Sep 2007 22:53:12 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: 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:77822 Archived-At: I just stumbled upon `mouse-autoselect-window' and I wonder how it is supposed to work - in particular, on MS Windows. The doc is pretty skimpy. Trying it out with a value of t, it seems to make the focus follow the mouse, as long as you stay within the same frame. When you move the mouse to a different frame, the mode line is activated, and the menu-bar and the tool-bar icons change (depending on the buffer), giving the impression that the focus has shifted to the window under the mouse in the new frame. But the focus remains in the last window the mouse was in in the old frame. The frame border and title bar of the old frame show that it still has the focus; it is only the mode line, menu-bar, and tool bar that indicate (falsely) the contrary. IIUC, on MS Windows there is no way for Emacs to override the click-to-focus-frame behavior. In that case, should the mode line etc. really indicate that the focus was moved to the other frame? Am I missing something - is there some sense in which the new window (in the new frame) is focused or active? If not, why activate its mode line etc.? Also, wouldn't it be good to document both `mouse-autoselect-window' and `focus-follows-mouse' in the same section of the Emacs manual - or at least provide a cross reference? It's not obvious that both variables exist when you read about one, and it's not obvious what relation there might be between them - how each relates to focus. Finally, shouldn't the doc string for `focus-follows-mouse' make it clear that it is about _frames_? It does mention "window manager", but that's about it.