From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command Date: Wed, 5 May 2021 11:25:25 +0200 Message-ID: <2f30b9c9-788f-502b-aeab-1b349fed997a@gmx.at> References: <24706.50397.801563.461736@capuchin.co.uk> <7ee648e84004b7745946@heytings.org> <24709.3891.605753.919647@capuchin.co.uk> <677a04021b23aa2d7c9f@heytings.org> <24709.24669.871737.299611@capuchin.co.uk> <677a04021b6d6347bbd2@heytings.org> <4edb1435266ad41487a5@heytings.org> <8fdeca1f-7d34-c95a-0f2d-5550dea34512@gmx.at> <242e45b6-6dee-c85a-2ac8-67b2adeb93b5@gmx.at> <838s4w6mua.fsf@gnu.org> <83y2cv6773.fsf@gnu.org> <1a73bd6c69efd6282e57@heytings.org> <83bl9q676g.fsf@gnu.org> <1a73bd6c69e27aed1fbd@heytings.org> <83y2cu4p0g.fsf@gnu.org> <1a73bd6c6998b2e086fc@heytings.org> <83tuni4mwi.fsf@gnu.org> <1a73bd6c69c2cc8827d5@heytings.org> <83r1im4jct.fsf@gnu.org> <70f2eadd5f0765103f13@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47969@debbugs.gnu.org, robert@capuchin.co.uk To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 11:36:07 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leDws-0000tB-Eg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 11:36:06 +0200 Original-Received: from localhost ([::1]:60500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leDwr-0004Qz-Gs for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 05:36:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leDn8-00036M-Q5 for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 05:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leDn8-0007B8-GP for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 05:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leDn8-0006vQ-CC for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 May 2021 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47969 X-GNU-PR-Package: emacs Original-Received: via spool by 47969-submit@debbugs.gnu.org id=B47969.162020674026614 (code B ref 47969); Wed, 05 May 2021 09:26:02 +0000 Original-Received: (at 47969) by debbugs.gnu.org; 5 May 2021 09:25:40 +0000 Original-Received: from localhost ([127.0.0.1]:58966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDmm-0006vC-H9 for submit@debbugs.gnu.org; Wed, 05 May 2021 05:25:40 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:48583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDmi-0006v6-M1 for 47969@debbugs.gnu.org; Wed, 05 May 2021 05:25:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620206727; bh=SZVH0JdZL+R2BMAuYOxFfv2AxDaUExKO5CKnSfntuHw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=OCSGxkiRZ7vQWZ9I56KPcCgYMht+VFw0gX8jA/K6YrQUg8IuPnnAvECRm/vuswHk2 7OjqajtCbVLkSoux1teXZ40IW8EutTF++3xYGGXf9kRjtQwjwyIN/L08IbB+CpOg3A uPQb0Gyqi+a8fLCfg4ghTAD3StlZRxsYptEbBP8I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.2]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPXhK-1lqozN25oo-00MeoE; Wed, 05 May 2021 11:25:27 +0200 In-Reply-To: <70f2eadd5f0765103f13@heytings.org> Content-Language: en-US X-Provags-ID: V03:K1:Ne9Ji/Q1ElBe0NoiafERHGKxCJ7Yw3EJRR26EL1pf7MesWPm8wh XVnrRXHRu+u92nBki1IEKByOXdFR4b1pfH2YT6DGUKrJVKwVpMXMLVCVWY3716eiTsx2VV0 3IHF4zpFobTXz/El9NvIHkIOYUVZAHfCLncgCmf1bmoFDllM8p+s7C3HLbAP8NE2VB6ka6u QNyOBBSyCPDjz4w8X+2FQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:FPkN46L+wyM=:ajJWUCtq+7FOcRbai2DUss YUp3pw9NMgCRugEZp77Gi/qa1PFqF1Li0XG1uBUAi8Pnj7OQhqaLkeHFYXqCjgOY1hoQls4OP PQztSBtlbk9dOsDw5dFLuObiFFA8Ql10pcvRE5ym4/Y9SnqWuY6vB/mwLuti5Faurid8gZOtd MOPRyKIDEkC0kKpBg12w32Rx8gKkwbMqieVVm/HDbplYmxjku4mveiDM40x3NQSPVVjw78mfV BMiihuqsAfWQpbX5cTbGMq6v8OJBna/ETf56iXO1GNMq1BYrBb/GTj3Y61cJB7Cl//zTic8YR Mz4RCEHC16H3lrCn46vAAuuZylxbyTebYHp4kSe4DMk6+vVuk/zI2W9O3mCbpa4a/SWMrHEhX 7tvUwV16DrNbgXCsMQCWK8OfRuLfKQFODEW+AyCrBAHb3n86tXf9esdY7hrpHBNiM0DdZLaRx rIFfgSEz6ihWNrUuWKHFdUvw4vXKciSzFY2/Gwbcs8oL8riaeoIRH5GdJ9NH7luCAaXJcQGfJ 6Karjcpe+TZdOA9L6XBs3h9OULD0mMhIJ8ie+H+2zt26HjJb80NdbddguiM/hX669vIaQ/jdg 6WEOSEOCjCQozOKENFwTkyYpzK4nqY29ZEMLtQNoGB2j0t1H3bCADHCbldANSYhq5kMgFOjXF mu6pM2zw4KOjq7T9FjxZYBIW6JtRd6u22CXLj9V8wvnwduRKUJHJOD1Jp6N6+n4urcx6XEiJQ fskIYWpN4wul2ulrGn6KoeEKbtRLNMfSqB3fzBYjWbToBuNbfu1Xq0RCEQX+f/W6rByQZl6L X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205673 Archived-At: >> I have no good idea here but note one aspect: When a user has the minibuffer on a separate frame and her WM does focus-follows-mouse, moving the mouse between frames will select another window. >> > > Are you sure? No. > I just tried it (I enabled focus-follows-mouse in both my WM and Emacs and mouse-autoselect-window in Emacs), and with Emacs 25 (i.e. before 3fdd3bb56c) and with Emacs 28 with my patch, moving the mouse between ESC and x, or even later, does not select another window. The user input is redirected to the minibuffer, even when it is not the currently selected frame by the WM. What is your value of `focus-follows-mouse'? Also my WM does auto-raise a frame whenever it gets focus. And finally there's Bug#16681. > Is autoselection really necessary? An click does the job in this case: the window in which the click happened is selected, and the minibuffer is suspended. I never use double-clicks. So clicking into any window usually means to move the cursor to the position where I'm clicking at. Focus follows mouse avoids that. And within Emacs I'm using mouse autoselection to avoid that point moves to the position I click at. IIRC we have some workaround on X to avoid that but I didn't like it because I want single mouse clicks to set point. martin