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#45072: 28.0.50; Emacs switches other buffer back uncontrollably, if other window's buffer is changed by user during minibuffer editing Date: Thu, 10 Dec 2020 10:47:21 +0100 Message-ID: <73e2a032-d3e9-bc94-2f72-246096ce03cb@gmx.at> References: <86eek3hvu5.fsf@protected.rcdrun.com> <87eek1fvgf.fsf@gnus.org> <83eek18ref.fsf@gnu.org> <835z5d8lhc.fsf@gnu.org> <87pn3k87tx.fsf@mail.linkov.net> <877dpqzx3o.fsf@mail.linkov.net> <57c673d0-e6e7-120d-8893-92b02ab1530e@gmx.at> <87wnxqxdx5.fsf@mail.linkov.net> 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="36584"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, Jean Louis , 45072@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 10:59:28 2020 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 1knIjQ-0009QZ-GD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 10:59:28 +0100 Original-Received: from localhost ([::1]:55832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knIjP-0007sr-IA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 04:59:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knIZK-0005bp-HD for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 04:49:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knIZK-000812-9U for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 04:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knIZK-0004hp-7b for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 04:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2020 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45072 X-GNU-PR-Package: emacs Original-Received: via spool by 45072-submit@debbugs.gnu.org id=B45072.160759368218007 (code B ref 45072); Thu, 10 Dec 2020 09:49:02 +0000 Original-Received: (at 45072) by debbugs.gnu.org; 10 Dec 2020 09:48:02 +0000 Original-Received: from localhost ([127.0.0.1]:37054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knIYM-0004gK-7B for submit@debbugs.gnu.org; Thu, 10 Dec 2020 04:48:02 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:36977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knIYK-0004fl-0u for 45072@debbugs.gnu.org; Thu, 10 Dec 2020 04:48:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607593642; bh=sjzO+UN0W8dNvYeCx51GolN1Ilqvg0oW6A+1TlpJyvY=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=DKJv8vbeEuUD1b5GviZ+QghLlzUryTlsvXou/ZtAYsdGycRYuvWw8y6WI3RI9Dh+i IBEy0OFvmF4Ugy5zedK6KtjF0I/VFUgSGnTnOPzos440n/BWV/kAHtRQ0k5nJ+sQ87 WFA8wMxVsMf92ixBj5cc1pYfysRHtdH4IxzYr4D0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([46.125.249.102]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N0oG5-1jsjaJ297F-00wnZZ; Thu, 10 Dec 2020 10:47:22 +0100 In-Reply-To: <87wnxqxdx5.fsf@mail.linkov.net> Content-Language: en-US X-Provags-ID: V03:K1:9Pv1UYmoQMs5iaAK+NYFaqsv3lAzRWrw0xeFZi7iEJ4fdGaMWXM aa4KFVoouKCX+sgMwVvFxSd54hWEc2CPIREYXebR7SRPvp4q7fzE8SdY2kACZOck7leRXgu py4vfNlYCJmlo8y+mFs3Ut/z1Lm6UwwShTju2fCRm+Gqashfk1fgQqGEgw6HbrCo7ZToczJ BaaaI9asI1JU4m58bVqxg== X-UI-Out-Filterresults: notjunk:1;V03:K0:5oNCBruNxbY=:W8q6yNTIpICY+G2F5Cq320 6WB2+L3S6RfS9Q/znwPAp5673jVRGiK77bq81XN3yhqfvX/uK0pmSQOUW67jNwrt8wDB44rnG 7/zkutKUnf5n2xXZKNUyfXgW+2RDvQ0rO/oI9I0GVCGbjiy8XWvxP1CCiRJ3gxu84gvBijs1g d7We7Q9+zw1WxNEw0z3+lD6VRMseKhOJ458H9lHAQLPyDxnx4NgnC30QXGQIqdEtXYL6BYlfV 2dolty2iKmzXH5+k2Du7fghy/IDVbQ0Bw+4WMve+qMqmFoF8OAga1SPb3lCDfT/gcSOZkBJyF 6HtWGwUK/aTy9cxmA3sApWegwdDhdgN9zAdcVwNbXsoBnfb197ySr7RDPj5Tm9UJ7TT4KWQRC BjyLNFVe+vrnugVntugoMCVsU36at9TzQWg4Zg9nf1JMIcAvAFJb3x/ildFHXYTxHVfV1r1Vu L1/mXra4ObRoy8UIJyvXFV0mR6Ih3NEPK2H8VsPxXwzeDs6fPlBz+jYMECZelFAnYVTttqPol WvGBtODB2mIDFeBBHRZvtaYDIBWvQsP909Y1L60n//u/fW5HpEorKHOCng6xPDu1cKAuZVO7B H+T+/6j9fF6k7mzQ5jrIWXDfyKjKhfDTayMk7xIaDku5pFCKs+pBgHOrgxDV+f812h5SW6eCy 4ukZRW5AvmYhi1E/4sItp8mjQzJZRUXoMNSgGPGwc5D4JRzQ5fPY5WNLkK8stY74Fy4poJrcq Px3V5odfkYv9TtzlV4sf4gbC14Tc4FhVX6+5ra8nR86xeltiEggGSNwlr14waXScV1mITcrE 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:195635 Archived-At: > What do you type to accept a suggestion? I can't find a key > to accept a suggestion without exiting the minibuffer. When I type here C-h f set- RET I get a completions window with the "set-" prefixed completions. When I now type auto RET the completions window pops down and the minibuffer window shows set-auto- When I now type another RET, the completions window pops up again and shows the "set-auto-" prefixed completions with the minibuffer showing set-auto- When I now type an "m" I get a help window showing me help for 'set-auto-mode'. So here the pop down works already and I have no idea why it cannot be extended to the entire completion mechanism. > Then maybe the commands that pop up the completions window > should clean up their windows after use. What would be the > right place to remove used windows? Maybe in exit-minibuffer? > Or in some unwind-protect in case the user types C-g? The completion mechanism should clean up its traces as soon as it is finished - either a choice has been made or it has been aborted: This can mean to clean up windows or frames, size back a minibuffer window or remove a pop up menu or a dialogue box. But I hardly ever use that mechanism so I cannot tell how it works (or should work) in practice. In either case 'exit-minibuffer' is too late. It must be either the caller of completions - just in case it wants to, for example, reuse the present window for refining the list of completions - or the called which might be more noisy with windows popping up and down. And I suppose that completions are not invoked from minibuffer interactions alone ... > This means that quit-window should be used on the completions window. > It should do the right thing: either restore a previous buffer in that window, > or close the window if no more buffers were displayed in it. Yes. But IMO that should be done _before_ reading from the minibuffer interaction finished. martin