From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis 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 11:30:44 +0300 Message-ID: References: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30322"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: Juri Linkov , larsi@gnus.org, 45072@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 09:39:08 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 1knHTf-0007li-H1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 09:39:07 +0100 Original-Received: from localhost ([::1]:35730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knHTe-00063r-FA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 03:39:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knHNo-00006n-NH for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 03:33:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knHNm-0007hj-1n for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 03:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knHNl-0002oI-Us for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 03:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2020 08:33:01 +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.160758917810786 (code B ref 45072); Thu, 10 Dec 2020 08:33:01 +0000 Original-Received: (at 45072) by debbugs.gnu.org; 10 Dec 2020 08:32:58 +0000 Original-Received: from localhost ([127.0.0.1]:36952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knHNi-0002nu-Fg for submit@debbugs.gnu.org; Thu, 10 Dec 2020 03:32:58 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knHNh-0002n5-4I for 45072@debbugs.gnu.org; Thu, 10 Dec 2020 03:32:57 -0500 Original-Received: from localhost ([::ffff:41.202.241.31]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E00D.000000005FD1DD38.0000132F; Thu, 10 Dec 2020 01:32:55 -0700 Content-Disposition: inline In-Reply-To: <57c673d0-e6e7-120d-8893-92b02ab1530e@gmx.at> 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:195624 Archived-At: * martin rudalics [2020-12-10 10:45]: > > What do you think about let-binding a new variable > > read-minibuffer-record-windows to nil around functions > > that pop up completion windows? > > > > I mean for example in minibuffer-completion-help: > > > > (let ((read-minibuffer-record-windows nil)) > > (display-completion-list completions)) > > > > The default value of read-minibuffer-record-windows could be t, > > so it will record new windows created by the user, e.g. by C-x 2. > > But when let-bound to nil, it won't record windows created > > by completion commands, so these windows won't be restored > > after exiting the minibuffer. > > We'd have to augment the 'quit-restore' mechanism somehow and run it on > all windows instead of restoring the configuration. > > But I still don't understand the logic of the following: > > (1) Start minibuffer interaction, type a- > > (2) Pop up a completion window for a- and accept suggestion a-b > > (3) Type another - so you now get a-b- > > (4) Pop up a completion window for a-b- and accept a-b-c > > In this scenario I'd want, after accepting a-b, the completion window to > disappear (or show its old buffer again) without the minibuffer action > having terminated. So I'm still convinced that restoring a previous > state should be triggered by the completion mechanism and not by the > read from minibuffer mechanism. I am trying to see relevance here, maybe I miss something. The built-in completion does not replace the window which I am looking it. It may make its visible part somewhat smaller, but not replace it. Then I change buffers in those windows. Apart from being made somewhat narrower, windows are not replaced by completion. And I did not even use completion. I was entering information on minibuffer. > One thing that has to be considered too is user interaction during > completion: Suppose I have one window, the completion mechanism pops up > a new one and I delete the old one I have not ever see that in built-in Emacs completion. But maybe it exists. I have seen completion poping up new window, but not replacing or deleting other window. Jean