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:50:12 +0300 Message-ID: <83efgsqo63.fsf@gnu.org> References: <83k1qlr4pg.fsf@gnu.org> <83A352FD-9996-4621-B206-9BE2D93168BF@scratch.space> <83h8lpr19w.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1530110958 13021 195.159.176.226 (27 Jun 2018 14:49:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2018 14:49:18 +0000 (UTC) Cc: 31975@debbugs.gnu.org To: Van L Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 16:49:13 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 1fYBkv-0003GX-Dw for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 16:49:13 +0200 Original-Received: from localhost ([::1]:59779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBn2-00075l-Kn for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 10:51:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBmj-000745-Rx for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBmg-0007Jc-KY for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58130) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYBmg-0007JE-GW for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYBmg-0000pB-97 for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 10:51: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:51: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.15301110193117 (code B ref 31975); Wed, 27 Jun 2018 14:51:02 +0000 Original-Received: (at 31975) by debbugs.gnu.org; 27 Jun 2018 14:50:19 +0000 Original-Received: from localhost ([127.0.0.1]:37794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBlz-0000oD-7m for submit@debbugs.gnu.org; Wed, 27 Jun 2018 10:50:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBly-0000o1-2q for 31975@debbugs.gnu.org; Wed, 27 Jun 2018 10:50:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBlp-0006Eq-Ga for 31975@debbugs.gnu.org; Wed, 27 Jun 2018 10:50:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBlp-0006Eg-CI; Wed, 27 Jun 2018 10:50:09 -0400 Original-Received: from [176.228.60.248] (port=4008 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYBlo-0007W4-RO; Wed, 27 Jun 2018 10:50:09 -0400 In-reply-to: (message from Van L on Wed, 27 Jun 2018 14:49:16 +1000) 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:147867 Archived-At: > From: Van L > Date: Wed, 27 Jun 2018 14:49:16 +1000 > Cc: 31975@debbugs.gnu.org > > In other words, to demonstrate to you, > how the desired and expected behavior > is configured, for example, for the > Terminal app, I found and quoted what > was needed to tell the window manager > what to do. OK, but I don't think it helps us solve this problem, except by telling that it should be possible, at least in principle. > Also, not for use with the NS port, > but x11 to a remote GNU Linux GNU Emacs, > XQuartz’s X11 Preferences has a tick box > for `Focus Follows Mouse`. I believe this is for the remote X, so gain not useful for the problem you have locally. > I am asking for this behavior for the mouse > on the NS port’s outer most windowing framing > boxes with the horizontal traffic lights at > the upper most left most corner. In use, I half full screen > zoom two of those, arranged left and right, in the window manager. Not sure I understand: are these 2 Emacs frames, or are these something else? > The mouse focus doesn’t follow Emacs’s frame arranged left and right. > `C-x o` does not skip among Emacs’s frame. Again, I'm not following: "C-x o" is not supposed to switch between frames, it switches between windows on the same frame (as I'm sure you know). > The mouse focus does follow within the Emacs’s frame on the right, > for example, when it is split horizontally to contain a top and bottom elements. > `C-x o` does skip among top and bottom elements. So mouse-autoselect-window does work between windows of the same frame, but doesn't work when you go to a window on another frame? If so, this is indeed a problem to solve with your window-manager, not with Emacs: you need to configure your window-manager so that it makes focus follow the mouse. Emacs cannot do that; its focus-follows-mouse variable is the means to tell Emacs, if necessary, that you have configured the window-manager that way, but setting that variable cannot force the window-manager to work that way. > `mouse-autoselect-window` is t; for the following > > #+BEGIN_EXAMPLE > [next-line] > [next-line] > [next-line] > [scroll-up-command] > [scroll-up-command] > [scroll-down-command] > [scroll-down-command] > [handle-select-window] > [handle-switch-frame] > [handle-switch-frame] > C-h v [describe-variable] > m [self-insert-command] > o [self-insert-command] > u [self-insert-command] > s [self-insert-command] > e [self-insert-command] > [minibuffer-complete] > a [self-insert-command] > u [self-insert-command] > t [self-insert-command] > [minibuffer-complete] > [minibuffer-complete-and-exit] > C-h l [view-lossage] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > [handle-select-window] > C-h l [view-lossage] I do see select-window here, so the feature is working.