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.devel Subject: Re: Stop frames stealing eachothers' minibuffers! Date: Fri, 27 Nov 2020 10:34:01 +0100 Message-ID: References: <20201123133613.GA4635@ACM> <69ba00e6-b182-77e1-911b-d70f9fffa762@gmx.at> <20201123160703.GB4635@ACM> <53833023-d959-07af-7611-aa2e0bdcc1bc@gmx.at> <0d14bfc4-8e8e-d3b9-e0e1-ee4bf2e6449d@gmx.at> <20201125210947.GB8228@ACM> 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="14939"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrii Kolomoiets , emacs-devel@gnu.org, enometh@meer.net, Stefan Monnier , Alan Mackenzie , Eli Zaretskii To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 27 10:40:46 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kiaFC-0003nU-Gb for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 10:40:46 +0100 Original-Received: from localhost ([::1]:47234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiaFB-0001kg-Ae for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 04:40:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kia95-0005io-KM for emacs-devel@gnu.org; Fri, 27 Nov 2020 04:34:27 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:49875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kia8w-0007UR-5H; Fri, 27 Nov 2020 04:34:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606469645; bh=+dIZ7mZt+p6QYDPHvoMnSqvQtjl6s9IfOiXhfbW+wU4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=MlcISSZxnTh+epB11Dtvlz0AVsGI6wr71rIoBFGIn13pfwovbAvsMNsdYYll7BQ1I IiVBq5t36Mzg9hGePssMvgW+Xpt4/I/mIpvwjZ18Ygzvsf+q59u5EBHQHiDdZxwx2C vTgzypCQf+1CoCgz7s+iymUfybKVgUbARUJ+5PYE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.185]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYNJg-1keiYJ2pFK-00VRen; Fri, 27 Nov 2020 10:34:05 +0100 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:OElz2yUXneoAx4M/qCKHlz3kACarJn26iHeX/oQcJqEYFd4N5Mm HYAQMb5gbx29NTo9IZetq6tfYLzykhburkmCrXQecd+cPcgEw8oGME9TWd5isGDYmpd65sX EXqri0StukKlDEPvCtu32L+G/B6m4q3Q7PzZ5NU0LJwkhiZKomR7SmexoTL6pETMfgKOudT tPe282bKlb2vUYI3lOwKA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Wokv8PEybtg=:n+1PoG3EvPSvV4uCfCERia OreeDXJqO4ReQTtR3l3wKe+GrSymOXdSCQjMAA6hKX3O9k92njEIfPQATtuuoIxWQtAyY4lJJ eg18zdXPWUxmhvat7dkjF0Kd4Vipntjdq5qb7o8T9MvuLHATXF+1aEAv9v06HkKs1loFe2JKV fiD6oAzGFqTpUfoJpa8uo/uHXLmZA0FYd1yrkKYYQc/1wyZiNVlR9JH7w+qVFYjrzb/P93Obh q+nLBdW56IM05s3fpXh0e+5L3op05qEXUthrN8IAdPGEWHa8/1zmwV4CnZ5J3p+DC1soq80cS 3K1lmJVTFV7NwtqYDNjrMXHAUXwHUU16KpttLCrsLf17UgYtGC/+5rp/SzfhjFwLwKFIQAfk3 na8RKNH3KUKghL3Ryt5qtAiENSp6Q7Y2jZv5AiZUXseY6n0vcCkCGvbyMy/WNngjnMgrSWb/N bAykSjDawkLv/b2FwtgPnDRcfXNFB+pR1ipeyT2v0XJL3i64Z5JkIGTFz9/777CIO7ReiwArq ZiZQJu5j92kTo/JAJuEtOEsS1SiOyDYexYgpchSO5MtXS7lUZZXN4HfI/xq9zj3AENPiyGwQU S7JzX/BFFRHSj8Hl8em9xd9Xor5DAmyuXtOn6/y5XCmrU9idF19+6PxQsLaroEubce7opfS7E 4MtlRbyry68yPaMG0LSvHWfTfpjucqFQvGocBskljybIsIZQW+pJB+Qb+gkdiZH5ZII0Sa7lZ SmBylonO+G9lFYDe9li99MOgA9BvtHKdX7ft7G9mTfXyTFngY9bRefPf6ilqpJjt1PpODvUK Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259859 Archived-At: > Note that this patch and discussion started with the following observation (on Oct 13): > >> (i) Have two frames open displaying buffers. >> (ii) On frame F1 do C-x b. This leaves a minibuffer open there. >> (iii) Move to F2. >> (iv) Do C-x 8 RET . >> F1's minibuffer is now on F2. This is bad. But I see the same with Emacs 27. After moving to F2, the minibuffer of F1 appears there. It's just that when I now confirm the prompt to switch to *Messages*, that buffer appears in F2 with Emacs 28 whereas with Emacs 27 it appeared in F1 (with 'minibuffer-follows-selected-frame' at its default t). > It is indeed not possible to replicate the behavior of Emacs 27 and earlier. What we have is, for example: > > | Emacs 21-27 | Emacs 28 with (setq m-f-s-f t) | Emacs 28 with (setq m-f-s-f nil) > A | MB1 on F1 | MB1 on F2 | MB1 on F1 > B | MB1+2 on F2 | MB1+2 on F2 | MB1 on F1, MB2 on F2 [1] > > A: type C-x C-f on frame F1, switch to frame F2 > B: type C-x C-f on frame F1, switch to frame F2, type M-: Right. Needs 'enable-recursive-minibuffers' non-nil to replicate. > [1] There is also a severe regression in this case. Type C-x C-f on > frame F1, switch to frame F2, type M-:. "Find file" is still visible > in the miniwindow on frame F1; switch to frame F1. > > Experiment 1: Type the name of a file and RET. You'll get the error > message "End of file during parsing", and MB2 on frame F2 will be > left. MB1 is now unuseable, and impossible to leave, it will stay on > F1 whatever you do. 'keyboard-escape-quit' gets me out. While this should be the last resort only, it happened to me occasionally before Alan's changes. Yet, your scenario must be fixed. > Experiment 2: Type C-g. MB2 on frame F2 will be left, and "Find file" > will stay in MB1 on frame F1. However you cannot use it anymore, the > keymap of MB1 is now minibuffer-inactive-mode-map. And like in > experiment 1, you cannot leave it. Bad indeed. Must be fixed too. martin