From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pillule Newsgroups: gmane.emacs.bugs Subject: bug#48493: 28.0.50; quit-window doesn't work Date: Tue, 25 May 2021 01:58:22 +0000 Message-ID: <878s434ls1.fsf@host.localdomain> References: <87h7j0wwkf.fsf@gmail.com> <87cztg41zy.fsf@host.localdomain> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pillule , Sujith Manoharan , 48493@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 25 04:15:17 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 1llMbE-0002LB-7H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 04:15:16 +0200 Original-Received: from localhost ([::1]:58822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llMbD-0006mc-6T for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 22:15:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llMLY-0001n0-1z for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 21:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llMLW-0007G7-Cp for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 21:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llMLW-0005PD-BN for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 21:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pillule Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2021 01:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 48493-submit@debbugs.gnu.org id=B48493.162190792420755 (code B ref 48493); Tue, 25 May 2021 01:59:02 +0000 Original-Received: (at 48493) by debbugs.gnu.org; 25 May 2021 01:58:44 +0000 Original-Received: from localhost ([127.0.0.1]:44236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llMLA-0005Od-6g for submit@debbugs.gnu.org; Mon, 24 May 2021 21:58:44 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:38572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llML5-0005OM-26 for 48493@debbugs.gnu.org; Mon, 24 May 2021 21:58:39 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Fpy0j22shzDqC8; Mon, 24 May 2021 18:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1621907909; bh=xgbE9rwuA9hKBo1a8JafTtsbCZQSF58e59JZ74Pg9bU=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=NhoFt12Ltmjl4BaL6Q9oTH9ba4LnkBGxp1qk3mAAuhZaVLYkq+4aVHm94tWp28Atz DY1C079vMwE1eOpsh5TZn5a/lrC9Wh/oXWhkhWatAwhivivRkg9vYEYDTa01r6Xjtw Yq6fJ5JCRkWJUobiS+MEh+P/vfUx0osJSWKKwD+w= X-Riseup-User-ID: 699BCADBDC4C1D31BF52FBE1F0BBC22CDFE5AE5B566986E56D65EF064F66951D Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Fpy0g27xbz5vbM; Mon, 24 May 2021 18:58:26 -0700 (PDT) In-reply-to: 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:207153 Archived-At: >> What is the desired behavior of a dedicated window here ? >> Must *Messages* be displayed after we killed *Backtrace* in the >> first >> place ? > > I think so, yes. Then I suppose that the dedicated window parameter must be restored after a kill-buffer accordingly; this solve the previous test but ask for more modifications. I am testing a version of this. > [...] When > *Messages* is killed, the window should have no more previous > buffers to > display and we should be able to kill it. But > `switch-to-prev-buffer' > shows the "next" buffer instead. Try to come up with a solution > that > does not reintroduce Bug#48493 and deletes the window when no > previous > buffer is found. I can modify to `switch-to-prev-buffer' (and its sibling `switch-to-prev-buffer') to return nil instead of the current buffer; however the result is the same : the window rest in place with an undesired buffer inside. Note that we may want that anyway if it can solve the cases where `quit-restore-window' display the same buffer again. I am still looking to find what may be messing the prev-buffers list. --