From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command Date: Thu, 06 May 2021 09:22:52 -0400 Message-ID: References: <24706.50397.801563.461736@capuchin.co.uk> <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> <83tunh2xlv.fsf@gnu.org> <83zgx8e15p.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38174"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: martin rudalics , gregory@heytings.org, 47969@debbugs.gnu.org, robert@capuchin.co.uk To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 06 15:24:16 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 1ledzE-0009ko-KI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 15:24:16 +0200 Original-Received: from localhost ([::1]:37038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ledzD-00016Y-5p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 09:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ledz0-00016L-Kn for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ledz0-00075m-2x for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ledyz-0000Yu-VG for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 May 2021 13:24: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.16203073892141 (code B ref 47969); Thu, 06 May 2021 13:24:01 +0000 Original-Received: (at 47969) by debbugs.gnu.org; 6 May 2021 13:23:09 +0000 Original-Received: from localhost ([127.0.0.1]:37528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ledy8-0000YT-Te for submit@debbugs.gnu.org; Thu, 06 May 2021 09:23:09 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ledy6-0000YB-VU for 47969@debbugs.gnu.org; Thu, 06 May 2021 09:23:08 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 55F128089C; Thu, 6 May 2021 09:23:01 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D6DC4806F1; Thu, 6 May 2021 09:22:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620307379; bh=AJMcaqFwVjHnM/0vZw4jsNy2pRPu53KUbBWJd0841zQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lNI5HwWDOcjj9Fg8sOVQ0npZeMhCgbFN4wuV3OwgwAk9ZAzcLKS85n4Q3+op+RDk0 l0+mD7m+rPeNGYWe0VMNabRNwl4EZ0JeH3Bk3nx9Ls9MBzsBnRYJf0pqmgdB5Pzp8S N8WRoPexv/vXc992sy/c2Nz0uBx3p1PLTC9u2Env2BrRS4Jy119xBsF7XehME44v6v rkwzB+RCCVBhulrG7u+sk/AapHarxoKNn/pC/Zmay4y6xHdjU9C7YoTbX2728pGfBP o6Xt9y6u3iblEupHoZfiDHhDcdcE6iBTTnPqPbSx6t3SJtYDrkr1KXYMTqvUoiigvy l7wIkeLEOn3xw== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7A5BE120249; Thu, 6 May 2021 09:22:59 -0400 (EDT) In-Reply-To: <83zgx8e15p.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 May 2021 11:06:58 +0300") 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:205830 Archived-At: > I don't know; I don't think so. But the solution doesn't have to be > entirely in Lisp, does it? We could, for example, add a variable > indicating that a key sequence is being read (if there isn't such a > variable already). [ I don't think there's such a variable, no. ] > Stefan, any suggestions or comments? No, the thread looks pretty complete. I'll just point out that it's OK to revert the change made for Emacs-25, but at one condition: we need to clearly label the `minibufferp` test with a comment pointing to this discussion so that if the problem that commit was intended to fix comes up again, we'll then have more context to make a better decision. Actually, one idea: this problem seems linked to accidental mouse movement, so its occurrence depends on the kind of input device you use as well as the user's usage patterns, so we could let `mouse-autoselect-window` have 3 values, for those users who want to support `mouse-autoselect-window` even from inside an active minibuffer. Stefan