From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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: Mon, 19 Apr 2021 09:52:06 -0400 Message-ID: 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> <73e2a032-d3e9-bc94-2f72-246096ce03cb@gmx.at> <87pn3e697i.fsf@mail.linkov.net> <35666a8a-6888-972c-4e20-bf05cf09d764@gmx.at> <87tuso16qn.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15493"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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 Mon Apr 19 15:53:23 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 1lYUL4-0003tM-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 15:53:22 +0200 Original-Received: from localhost ([::1]:41704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYUL3-0007Qb-JT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 09:53:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYUKl-0007Pc-3y for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 09:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYUKk-0002M5-Fa for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYUKk-0004I2-EV for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Apr 2021 13:53: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.161884033816435 (code B ref 45072); Mon, 19 Apr 2021 13:53:02 +0000 Original-Received: (at 45072) by debbugs.gnu.org; 19 Apr 2021 13:52:18 +0000 Original-Received: from localhost ([127.0.0.1]:48900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYUK2-0004H1-AF for submit@debbugs.gnu.org; Mon, 19 Apr 2021 09:52:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYUJy-0004Gm-3F for 45072@debbugs.gnu.org; Mon, 19 Apr 2021 09:52:17 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 928A11002F2; Mon, 19 Apr 2021 09:52:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0633E1000C4; Mon, 19 Apr 2021 09:52:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1618840327; bh=XPislJkyTa1gOqJRQ3mXHdygTuiRYnCLaf23zU4nIm0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RYX9UMZ1HGICcFpHRsSaTXLxl1ywVkwv4trc4PGj922vK4vsyyLYQB5w2KeVj7iFC nU5n/hVoZMXcMz0sW2KwzBkNpTK/FT7QNtWz6JmRUfgZW73NFINFXHyk2bktk+ivut 2WO4t+dPnbuUM3SxOrOddKUQSDnmOSXyqKiy6kGhwanrnwQd8lWAE4vrDNC6PAD/c5 o/DBNFozeK2Fsja8UD1P3OU2wqCL09G/7CvRZYH7reZUZbmFFa00QTZ0PxatV+NKyw 36hH+CNwRoTX9BRlEgbMxQqPdPkEP1wvNUOTwGN1F/PxouprRsjegeu6dXCvodQQBV StqOhYpiupKhA== Original-Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BABB412023C; Mon, 19 Apr 2021 09:52:06 -0400 (EDT) In-Reply-To: <87tuso16qn.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 14 Dec 2020 22:28:40 +0200") 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:204454 Archived-At: >> But 'minibuffer-hide-completions' uses 'bury-buffer' which would delete >> the completions window unconditionally even when it was only reused for >> showing completions. IMO 'bury-buffer' is practically always the wrong >> choice for Lisp functions to call. > > Maybe 'quit-window' is better? Part of the problem is one of documentation: it's hard to know which one to call just by reading the docstrings. Also the above quoted text sounds counter intuitive: "bury buffer" sounds like it's mostly focused on hiding the *buffer*, potentially hiding the window along the way if necessary, whereas "quit window" sounds like it's mostly going to eliminate the *window*. Of course, there's also the fact that `quit-window` is fairly new (introduced in Emacs-24), whereas `bury-buffer` has been with us forever. Stefan