From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31975: Emacs NS port `M-x customize` Mouse Autoselect Window (point-to-focus) has no effect Date: Wed, 27 Jun 2018 17:56:18 +0300 Message-ID: <83a7rgqnvx.fsf@gnu.org> References: <83k1qlr4pg.fsf@gnu.org> <83A352FD-9996-4621-B206-9BE2D93168BF@scratch.space> <83h8lpr19w.fsf@gnu.org> <5B333E04.5070003@gmx.at> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1530111448 16728 195.159.176.226 (27 Jun 2018 14:57:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2018 14:57:28 +0000 (UTC) Cc: van@scratch.space, 31975@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 16:57:23 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBso-0004Fm-Tr for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 16:57:23 +0200 Original-Received: from localhost ([::1]:59830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBuw-0003oF-2z for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 10:59:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBsX-0002Li-Rv for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBsU-0006J5-LF for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYBsU-0006Ik-IO for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYBsU-0000xk-9Z for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jun 2018 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31975-submit@debbugs.gnu.org id=B31975.15301113843653 (code B ref 31975); Wed, 27 Jun 2018 14:57:02 +0000 Original-Received: (at 31975) by debbugs.gnu.org; 27 Jun 2018 14:56:24 +0000 Original-Received: from localhost ([127.0.0.1]:37798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBrs-0000wr-1g for submit@debbugs.gnu.org; Wed, 27 Jun 2018 10:56:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBrq-0000wf-SF for 31975@debbugs.gnu.org; Wed, 27 Jun 2018 10:56:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBri-0005WB-B2 for 31975@debbugs.gnu.org; Wed, 27 Jun 2018 10:56:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBri-0005W6-7E; Wed, 27 Jun 2018 10:56:14 -0400 Original-Received: from [176.228.60.248] (port=4378 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYBrh-000829-MG; Wed, 27 Jun 2018 10:56:14 -0400 In-reply-to: <5B333E04.5070003@gmx.at> (message from martin rudalics on Wed, 27 Jun 2018 09:34:28 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147868 Archived-At: > Date: Wed, 27 Jun 2018 09:34:28 +0200 > From: martin rudalics > CC: 31975@debbugs.gnu.org > > > But the above has no relation to focus-follows-mouse. > > mouse-autoselect-window works when the Emacs frame already has focus, > > and it selects one window on that frame by tracking mouse movements > > above the frame. (Yes, I know that the last sentence makes it sound > > like the two features are related, but that is only true on some > > systems. E.g., here focus-follows-mouse is nil, the default, whereas > > the window manager is configured to give focus to the frame where > > mouse is; and yet mouse-autoselect-window does work. > > I tried to clarify the doc-string. Please have a look. LGTM, thanks. > > So I think you should set mouse-autoselect-window to t, move the mouse > > between windows, then show the output of "C-h l". Then we might have > > some hint wrt what's going on. > > If this doesn't help, the OP could try to debug mouseMoved in > nsterm.c. It might also help to enable nstrace to find out whether > there are any mouse_autoselect_window related messages and what they > say. It sounds like the window-manager is not configured to have focus follow mouse.