From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command Date: Mon, 03 May 2021 08:42:28 +0000 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13546"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Marshall , 47969@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 10:56:00 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 1ldUMy-0003Oi-2M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 10:56:00 +0200 Original-Received: from localhost ([::1]:55336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldUMx-0004wY-4O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 04:55:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldUAP-0007sb-Sc for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldUAP-0003fC-LB for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldUAP-0005Q9-J1 for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 08:43:01 +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.162003135120829 (code B ref 47969); Mon, 03 May 2021 08:43:01 +0000 Original-Received: (at 47969) by debbugs.gnu.org; 3 May 2021 08:42:31 +0000 Original-Received: from localhost ([127.0.0.1]:46185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9v-0005Pt-4N for submit@debbugs.gnu.org; Mon, 03 May 2021 04:42:31 -0400 Original-Received: from heytings.org ([95.142.160.155]:35290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9t-0005Pn-B1 for 47969@debbugs.gnu.org; Mon, 03 May 2021 04:42:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1620031348; bh=lLEDGo4QW8KAvwN7nrVTmNDjNubv0qVv6SH5kEIMOmU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=OMhtBiuf0rfhO0LPrIqsBEFb5IupFoNR1KGPydyJBT5g10CaX3kG/4poX/2q96utU L5aIKqUhfGX1MjayrOiY1FySRV5PPY7jq5v/iV21pWXYQ5YQoO5OW5uHvXv8jHBudc TiHm8bDplnVm7bv2MTgZkfr/ARl8N7VniKwZawntDJ5Aiij68oEFBIZHI2k683/qIa M3JOlE7Zmtq1+aN68HkB2SeLF7vymw0+nTXY8trmqW+ggeyUn4sekaSt4fpXrltV04 a2BlEHXQ5euBpxSGujsnXsa3RnNM+MMYOi29dmEYvaTZ4KTtNvbVsZz78dKUy/iIWs 4F7nlTD4Z7OUA== In-Reply-To: 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:205482 Archived-At: >> Patch attached. Could you please test it, and confirm that it >> correctly fixes the issue? >> >> Cc'ing Martin, who authored most of the handle-select-window function. >> The recipe is upthread. > > I don't know what to say because (1) moving the mouse to the lower > window does _not_ lead to typing "gnus" in that window here and > Are you sure? I tried this recipe on GNU/Linux (27.2 and 28), macOS (27.2) and Windows (27.2), and in all cases "gnus" was typed in that window. Note that the recipe uses ESC x, not M-x. > > (2) I'd rather consider it a bug to _not_ select the lower window in > that case. > I don't know. What I do know is that mouse-autoselect-window was introduced in Emacs 22, and that in Emacs 22-25 the lower window was not selected with that recipe. That behavior changed in Emacs 26. > > Mouse window auto-selection should mimic the behavior of clicking into > the lower window and clicking in that window should select it also while > a minibuffer dialogue goes on. > This is not the case, not even in Emacs 28. If it were the case, the "ESC" would be discarded and "xgnus" would be typed in the lower window. What happens is that "x" becomes "M-x" because of the earlier "ESC", "M-x" stays in the minibuffer, and "gnus" in typed in the buffer.