From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59862: quit-restore per window buffer Date: Fri, 12 Jul 2024 10:20:32 +0200 Message-ID: <3f399d4f-3dd2-4624-b857-e198f70b5565@gmx.at> References: <86fsds8mlm.fsf@mail.linkov.net> <86ttibq1w1.fsf@mail.linkov.net> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@gmx.at> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@gmx.at> <86plsxmc6d.fsf@mail.linkov.net> <86r0d4ezdc.fsf@mail.linkov.net> <0d01a044-d7d6-456a-9ba9-d987faad4332@gmx.at> <86frthjq4y.fsf@mail.linkov.net> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@gmx.at> <86msnne7ut.fsf@mail.linkov.net> <86plsgrfvu.fsf@mail.linkov.net> <86le2b12ni.fsf@mail.linkov.net> <86y169kafb.fsf@mail.linkov.net> <61c4f245-3dd8-4e24-9c84-7ddd4cfe3c49@gmx.at> <86a5ioo269.fsf@mail.linkov.net> <867cdr3xs7.fsf@mail.linkov.net> Reply-To: martin rudalics 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="30479"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 59862@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 12 10:21:28 2024 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 1sSBWx-0007ha-Ob for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jul 2024 10:21:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSBWa-0004s9-AH; Fri, 12 Jul 2024 04:21:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSBWZ-0004rw-99 for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2024 04:21:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSBWY-0003SY-AM for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2024 04:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSBWY-00049l-Cd for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2024 04:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2024 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59862 X-GNU-PR-Package: emacs Original-Received: via spool by 59862-submit@debbugs.gnu.org id=B59862.172077244315940 (code B ref 59862); Fri, 12 Jul 2024 08:21:02 +0000 Original-Received: (at 59862) by debbugs.gnu.org; 12 Jul 2024 08:20:43 +0000 Original-Received: from localhost ([127.0.0.1]:53144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSBWE-000492-Ms for submit@debbugs.gnu.org; Fri, 12 Jul 2024 04:20:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:41415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSBWC-00048o-PC for 59862@debbugs.gnu.org; Fri, 12 Jul 2024 04:20:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1720772434; x=1721377234; i=rudalics@gmx.at; bh=vW2X1/MRpcMYNGY82oUgS7Rypy9VDO65J7wxIdYDiWU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=riDNST08wRhtjuygu1o6q4RpZXFKVatRLUl7pD/iUrgK0ZSrIbt4QIH61RGXXREm Qd/XV6A8yApYDMW4Yq784L1Nt+YRG2uk5eCmwRin88ZDLfRlr9EiBZX1Yra0L60mU KagJv+kPnW98vstaTkLQk3f6NpfSdW4tkQIaP7iYmRDlrqfmfxA35KlpEkbhXEBmj tMbmTYtl/NNNeYTyckcVpan1rnJICdOtoIfszu4qQYAYqoXXZRIDJc3X9vkzt5Bi9 DCRR2MAE7zpKWWcDkXOlhHpyB/1fFMEZnhdoyY9xn60eylo5kxJodcAX7DHYTfgMm QEOsrLK09DtSZOw/Qw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.131]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MdefD-1rt7kO3I5R-00i3xq; Fri, 12 Jul 2024 10:20:33 +0200 Content-Language: en-US In-Reply-To: <867cdr3xs7.fsf@mail.linkov.net> X-Provags-ID: V03:K1:tV56pxdOjOJsIwBlFZChAYMWlPkH3qHVQGcxEkPwoTdv8Yt49iq bcn61+EFMk42JUT1shOVcttiRciiYa7c7Lvx8GbSIf4mNp6teCP5DUBcyI2mIqlbY1vxJIx CDry2s2cUo6wBgqZ/vjnwI+IfD1gWvISPvjqg+j+J97IdRtG8NtdFPxpp0wUhni6QIxsTe9 SNt/7rlPCyfKADaAIsWuw== UI-OutboundReport: notjunk:1;M01:P0:ZrSWVXBi1q8=;8xBTvDgZQMljxN9Vw+Ea30CLf4w q4AUewtcKb7eqDxeQB0ZhzC7ofA1RKfpsYitP2Fz6iWL6Z2cN2uZIWgPoOmdmeR9WNGI4wa1y leOhkNfHIlZZZ7x8FDvp8hERL9YJ0MnSFNc4BGkn3Z2Vi+LJ2zWEAgTcCnz4n/X47f57ceuw3 xvgEVa59w5+N5fElBb58+qCp17pye/tyvf7+myekP+Ll23v4t+upaGN+NG5VKhvLCTjgp1k4u WktOe6f49qUv82eFHEGjaXsjy6ryrBgnY9oQagO8XYlQeZFpfS07HRpKES+mEExPTBM/580J5 AIjbrJlfVDjGmS9qE5wa7cuuCIMnYEdi75vMc4TX4FofgQE9cDnHbx9mFLZ1ArJtxz676IwtI TiZk3PzCFCs/BjVAVPbyR/hWK6u1BbzC0Ck73qx+z09d0wHX5OCpkBDoUCFscpiZ6wBviBeJa Je0iP1rj4X3TrYwU6xdpoLHzi4WjcIdvTuSgc7WDQqFGtmcClwY3o1Vs7nncxhhcsGw6K+1Tc 8guGDJlHjTOEXBhoWtNayTxHKd+4rDzYpiK9PjPEkM2HjnCUlCK2j5EworoBxhiw3ngAx6Lk8 i0jgLvZq5tSxeIoKu2yR83yusH0xKMu8TMF5hSpRI/MaDg8hdgMiu3syxHhInYnRXp2xBgAon AgrXefgf9BASj/kscmFM3cyghEGASU7pEVhMBpubGC3yFc0pF0foA2Ki9okqLU6UEfWxR2eYW jV4VTnRH8FIziqUWV8pEfNwAxY5uAMq9IIUr+5/2IYe11k9qMs14ILQC4CKfaGWYZP2bTyXN 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288767 Archived-At: > Ok, I will try to move it. We could replace the (or (eq (nth 1 quit-restore) 'frame) (and (eq (nth 1 quit-restore) 'window) ;; If the window has been created on an existing ;; frame and ended up as the sole window on that ;; frame, do not delete it (Bug#12764). (not (eq window (frame-root-window window))))) clause with (or (eq (nth 1 quit-restore) 'frame) ;; If the window has been created on an existing ;; frame and ended up as the sole window on that ;; frame, do not delete it (Bug#12764). (not (eq window (frame-root-window window)))) with the motivation that if a window does not have a previous buffer, there is no reason to switch to it. This will keep the frame around so Bu#12764 is not affected and the normal behavior of C-h i followed by C-h e is not affected either unless a user deleted *scratch* in between. Try it and if it works for you I'll add it to the new patch. martin