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 12:22:11 -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="38192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Juri Linkov , larsi@gnus.org, Jean Louis , 45072@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 19 18:23:26 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 1lYWgH-0009oU-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 18:23:25 +0200 Original-Received: from localhost ([::1]:43416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYWgG-0003yw-DJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 12:23:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYWfv-0003ly-5g for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 12:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYWfu-0001fD-3Q for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYWft-0002dF-Vr for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 12:23: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: Mon, 19 Apr 2021 16:23: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.161884934810039 (code B ref 45072); Mon, 19 Apr 2021 16:23:01 +0000 Original-Received: (at 45072) by debbugs.gnu.org; 19 Apr 2021 16:22:28 +0000 Original-Received: from localhost ([127.0.0.1]:51854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYWfI-0002bo-BZ for submit@debbugs.gnu.org; Mon, 19 Apr 2021 12:22:28 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYWfD-0002bW-FP for 45072@debbugs.gnu.org; Mon, 19 Apr 2021 12:22:23 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E5A8644118D; Mon, 19 Apr 2021 12:22:13 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9F432440FB3; Mon, 19 Apr 2021 12:22:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1618849332; bh=W0FBUlUSQCokbqiaqJ+Htlx92ulMHZ1rpH+hggUnrr8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=nfqafwTo6MSYxhKTVQ03auwqJAz0iR5AJP6XWkTzoga+n4jDkdFzbiKXe3cqmpJhw lyTf2AfxKt93o+MaKcFZIYMgkogIsPhx31fBv2EmPicUJd+nb1oASiOmIevCrv0yro MGtjqOUtVsfYNbtn4nslDn/YF069uUb28tHCu5yq5PAjSx/6nTanpAqGzrzzy17BqW vZhsm8E+LitU1VBciQL2zJc2P8M/dZRlzPf2VgWATEzVmRi30/pOusXf6vwyAZjQjJ tdQLTewZHoIureiIdjqJ5tO45pZZj6Ac6e8aGfhq/NVZFRhA2xRXNySTzYLcCH3AF6 iA31C5XAsOmZA== Original-Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0C1631202A0; Mon, 19 Apr 2021 12:22:12 -0400 (EDT) In-Reply-To: (martin rudalics's message of "Mon, 19 Apr 2021 18:02:19 +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:204486 Archived-At: >>> 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*. > > That's why Lisp code should call `quit-restore-window' instead of > `quit-window'. I suspect the docstring of the other functions should point to it if we want this to have any uptake. >> 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. > Both, `bury-buffer' and `quit-window' should be used interactively only. Maybe we should begin with adding (declare (interactive-only quit-restore-window)) to `quit-window` (adding it to `bury-buffer` risks us drowning under a deluge of warnings)? Stefan