Received: (at 59862) by debbugs.gnu.org; 9 Jul 2024 08:52:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 04:52:21 2024 Received: from localhost ([127.0.0.1]:52117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sR6aD-0003zU-Gp for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 04:52:21 -0400 Received: from mout.gmx.net ([212.227.17.20]:44043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sR6aB-0003zG-42 for 59862 <at> debbugs.gnu.org; Tue, 09 Jul 2024 04:52:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1720515127; x=1721119927; i=rudalics@HIDDEN; bh=EHgvQDcOqjrJiPQOpIx77zzL4evUofoAwj3FniKinU4=; 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=eMJWD5QkSlFxzcp6/D1fQQRE8LhYtHXZ+rxiJYMJRwGEK5jmhvy/M2GJU88AdvpK OzTg9zEqwotdiEIqaESaWfIoZG88TQDPwvJ4uK9IoJ2jcjEpjmaSvThjjf9edPqsu dwh9GYxsdSlG+BLcwn82FAGijMImi3jq/qIuMNj3B650bdcDHyGdHIEMXoDM4CqQo 82RUifmHn/z5e1NqikfYcYhBqjsPtKO/+K3TpGnVQ3ogXI/0csEPGF3xPt69ZkcC5 +b+FBJy0M/UtH7azkQ+aZ4DWyGc+AN3nZ1KM/WEUBMB2jWNxDIj1w2Fk1g3ZrlNY+ GiGfD3vidD7pFieqOQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.97.150]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNt0C-1skoFq49Q8-00SHnU; Tue, 09 Jul 2024 10:52:07 +0200 Message-ID: <a972688e-01f6-428e-9dc0-67a45bc9a770@HIDDEN> Date: Tue, 9 Jul 2024 10:52:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> <86plsgrfvu.fsf@HIDDEN> <ca1388d2-3481-49c4-8721-42792a399340@HIDDEN> <86le2b12ni.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86le2b12ni.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:3p17tgocLDQzym3lw6RuAXvyNdu4S8UG8xeMwCCJz4v3TrI3mAi XohZPnmZCQb3Lg4aV09nNUaCmsJBueGJTj/QgVsAVjFwYzDWDlDqmr+YZef0zNTIHmXbZLj sNsWC55yCQHeV//tmI4I9uawuYfHLro6rHTL7JqfZncU9oShn/qNGij/Qk6FajbxHQV2GuE qK3b8laxTULTXmsabIe0A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:twvukzr3B4w=;JHCo683RM02fWgkgLciYfb5HdI/ DR72UqjDK4H/ikf/al88uBa0SoJ54shetzsk7Xq9d+0fVcqw66rlyN6Tv482q57rLeYBe2g1c rRd1UU1JWi/uHrB2Rj8drSVl4MSj8FvHydkaxU1eIy9eVrndxI8KOlW9xr006u/+I7kwDKeJQ wO9naWQ1vbVWbYupzw1yazRK6a4Nh8YuB4+i0IpN4n+sRoOrpxHBLQjP21zzzcm3ETE+EaCKN BoE9LBRQ8zfUR6/e4bjO4SdyiwQR/9R+qIctSFgQKqhEgMFVyPq7/U9sjzpIb+5KOos9ui5ET IDKFnYw4qanNrl7LBXT+Uk57+AGaCTkJGWCMAMUHe9BR9gM0kZyHZq2mNWVoQ0p5TRsKuZ1gA WhvB4aWG2KtjyXysyH6cBBVf1GNzY4wFDONMSwdBMhJzzkrzGeJiFRer38S4ad/lynt3esPF5 RmNYNDfWDAFzWk4nIW2Q9GVB0P8cu91EjVENHj85N3VN01T17uJHEmV5EDwr3teM6sTfXhr0r BHKrWq8V7v75oKZ4XF+k/zi1vdudVf8FQz1whMfKj+dO952Vw5W91xwHo1YAMX+NTq/tsuGPT 2AnFDpr/z1FG3ljKjLQMslTLGRneOCIwd0fB2OLY2ngdAZ7o4B9bkisVGyqnkWlvVm9QoAgZu +KqG7ryTSJfjaS5Q0VXmIK0oKu4bhdgMBycSdhEkEu8sZaJj3FznOPhu2r6dFD7JUS7DUX7q2 3bbmjTr29rxHsFUV5Iywx/bpA/Rk/Prh+PIj2TWnTbH407QFJ1RbYGSOPyH/IzigexJVySZB1 4dCJfBLbIp2eg+2sfm2qnZbnOjX0CuGul+8HXrsl/Ux3s= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > I suppose it will affect only interactive uses of 'kill-buffer'. Why? It affects all uses of 'kill-buffer'. > PS: I noticed one difference between handling of frames and tabs: > > C-x 5 5 ;; other-frame-prefix > C-h i ;; info > C-h e ;; view-echo-area-messages > q ;; quit-window > This deletes the Info window, and doesn't delete the frame. > Everything is correct. > > C-x t t ;; other-tab-prefix > C-h i ;; info > C-h e ;; view-echo-area-messages > q ;; quit-window > This doesn't close the tab (correct), > but doesn't delete the Info window. > This differs from the frame case that keeps > only the Messages window on the frame. Suppose you do C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window Then the difference is obvious. The C-h i reuses the one existing window showing *scratch*. 'display-buffer-record-window' cannot tell this case apart from the one where a user does want to show *scratch* again in that window after being done with *info*. If we wanted a behavior that deleted the *info* window in this case (it could do that only if there is another window on that frame), the caller could add an alist entry, say 'delete-reused-window-if-possible', and add something like (when (and (eq type 'reuse) (assq 'delete-reused-window-if-possible alist)) (setq type 'window)) immediately before the (display-buffer-record-window type window buffer) call in 'window--display-buffer'. But you pass 'tab' as TYPE argument to 'window--display-buffer' and that would have to be handled in a maybe similar but still different way. martin
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 9 Jul 2024 06:59:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 02:59:31 2024 Received: from localhost ([127.0.0.1]:52018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sR4p0-000185-KG for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 02:59:31 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sR4oy-00017r-2e for 59862 <at> debbugs.gnu.org; Tue, 09 Jul 2024 02:59:29 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id B13BEE0007; Tue, 9 Jul 2024 06:58:55 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <ca1388d2-3481-49c4-8721-42792a399340@HIDDEN> (martin rudalics's message of "Mon, 8 Jul 2024 18:49:52 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> <86plsgrfvu.fsf@HIDDEN> <ca1388d2-3481-49c4-8721-42792a399340@HIDDEN> Date: Tue, 09 Jul 2024 09:58:49 +0300 Message-ID: <86le2b12ni.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > It took me some time to rewrite the code for this since I found a couple > of leaks in the window handling code which I tried to plug now. In a > nutshell, the new patch is supposed to fix the following issues. > > - I introduced a new variable called 'kill-buffer-quit-windows'. If > non-nil, it makes killing a buffer call 'quit-restore-window' for each > window showing the buffer thus implementing the behavior you want. If > nil, killing a buffer works as before apart from the fixes I added > below. Thanks, I hope it will help to replace such configurations: (defun quit-window-kill-buffer () "Quit WINDOW and kill its buffer." (interactive) (quit-window 1)) (define-key special-mode-map "q" 'quit-window-kill-buffer) (define-key image-mode-map "q" 'quit-window-kill-buffer) (define-key global-map "\C-q" 'quit-window-kill-buffer) (define-key dired-mode-map "q" 'quit-window-kill-buffer) (define-key archive-mode-map "q" 'quit-window-kill-buffer) (define-key tar-mode-map "q" 'quit-window-kill-buffer) ... I suppose it will affect only interactive uses of 'kill-buffer'. > In earlier versions of Emacs, window configurations were mostly used to > handle window excursions and were consequently rather short-lived. Your > tab bar code has changed that. Hence we should try to avoid any leaks > introduced by long-lived configurations. Indeed now window configurations are long-lived, so tab-bar uses (split-window) followed by (delete-window) to create a new window different from the window saved in a window configuration. > Please test the patch intensively and report any problems you see. I > used the forms below to test the various features of the patch. I have used your previous patch for a long time, and it worked perfectly. I hope your new patch will be as good as the old one. PS: I noticed one difference between handling of frames and tabs: C-x 5 5 ;; other-frame-prefix C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window This deletes the Info window, and doesn't delete the frame. Everything is correct. C-x t t ;; other-tab-prefix C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window This doesn't close the tab (correct), but doesn't delete the Info window. This differs from the frame case that keeps only the Messages window on the frame.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 8 Jul 2024 16:50:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 12:50:11 2024 Received: from localhost ([127.0.0.1]:51377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sQrZ3-0001nd-No for submit <at> debbugs.gnu.org; Mon, 08 Jul 2024 12:50:11 -0400 Received: from mout.gmx.net ([212.227.17.20]:45199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sQrYz-0001mw-Ug for 59862 <at> debbugs.gnu.org; Mon, 08 Jul 2024 12:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1720457393; x=1721062193; i=rudalics@HIDDEN; bh=FBNap9ctbV82IG6GZWIU5J5XfgR7r4lTqpm9nE/Ws2A=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version: Subject:To:Cc:References:From:In-Reply-To:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=TGBMcQNqqzCVbhCuQGulfUnaXxm2hDrHwYqBAxPEqUHuyOrF1wLcxEUOsHJEU2nE G553CoYgDV01WaqauCrXM5sZd2oEfNMPAtVGeOp3sfth3rujwhQYOl+lR/8SFaXQk 9OIEkVrIweHTUneeEQnn102xRspnRVZohCX1WV81TcnBKlzHSYjmiVEiexj3rWsel lCxFaVns6Qt+X/NeQTYILKL+Jx2VVVvRIFTcdqlso+iis6J63yDjgwcCTtlrv673q e1h3VC7tkxDaYedYS64Odj8It0USPSIzKubkIRl7jEPWu9RC5FSEIOM/rweQd7PNh 9aKgRq2dQvBvtDddiA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.96.136]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQv8x-1sme6I2IXX-00T70h; Mon, 08 Jul 2024 18:49:53 +0200 Content-Type: multipart/mixed; boundary="------------LljYayqEV1Ur0nfWMbfh90n8" Message-ID: <ca1388d2-3481-49c4-8721-42792a399340@HIDDEN> Date: Mon, 8 Jul 2024 18:49:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> <86plsgrfvu.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86plsgrfvu.fsf@HIDDEN> X-Provags-ID: V03:K1:Vtd2K3RtoMN3dOzca5pGWX/9apTNSZTjBq1FZi9g0BM0xU26Evl NpF3ecVxs3F8xEhtZq38F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spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: It took me some time to rewrite the code for this since I found a couple of leaks in the window handling code which I tried to plug now. In a nutshell, the new patch is supposed to fix the following i [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [213.142.96.136 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: It took me some time to rewrite the code for this since I found a couple of leaks in the window handling code which I tried to plug now. In a nutshell, the new patch is supposed to fix the following i [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [213.142.96.136 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This is a multi-part message in MIME format. --------------LljYayqEV1Ur0nfWMbfh90n8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit It took me some time to rewrite the code for this since I found a couple of leaks in the window handling code which I tried to plug now. In a nutshell, the new patch is supposed to fix the following issues. - I introduced a new variable called 'kill-buffer-quit-windows'. If non-nil, it makes killing a buffer call 'quit-restore-window' for each window showing the buffer thus implementing the behavior you want. If nil, killing a buffer works as before apart from the fixes I added below. - The new window parameter type 'quit-restore-prev' that was already in the previous patch handles most scenarios of traversing an entire chain of buffer display operations back to the one that initially created a window or a frame. The only thing it does not handle is to restore the previously selected window for all but the first and last such operation. - As in the previous patch I remove a buffer from all live windows' previous/next buffers and quit-restore(-prev) parameters when killing it. In the present patch I remove it also from dead windows (windows presumably stored in window configurations if they survived at least one collection cycle after their deletion). This should eliminate the necessity to scan these lists separately in the mark phase of the collector. - The old code erroneously has an internal window share the lists of previous/next buffers of a live window whenever that internal window is created by splitting the live window. If the live window is subsequently deleted but the internal window persists, these lists will continue to exist until the internal window is deleted. Since you cannot switch buffers in internal windows, these lists are completely useless while increasing memory overhead. The patch fixes this leak. Dead windows are kept in a weak hash table, adding a window when it is deleted and removing it when restoring it from a saved window configuration. The collector is supposed to remove all dead windows whose configurations have died in its finalization phase. For testing purposes, this hash table is accessible from Lisp via the variable 'window-dead-windows-table'. In earlier versions of Emacs, window configurations were mostly used to handle window excursions and were consequently rather short-lived. Your tab bar code has changed that. Hence we should try to avoid any leaks introduced by long-lived configurations. The hash table based code should also work for the incremental (MPS based) collector once it is capable of handling weak hash tables correctly. The present approach to emulate the above mentioned separate mark steps in Elisp is completely inadequate in this regard since it cannot identify dead windows. Please test the patch intensively and report any problems you see. I used the forms below to test the various features of the patch. martin (display-buffer (get-buffer-create "*foo*")) (display-buffer (get-buffer-create "*bar*")) (setq kill-buffer-quit-windows t) (kill-buffer "*bar*") (kill-buffer "*foo*") (setq foo (current-window-configuration)) (set-window-configuration foo) (setq foo nil) ; To reclaim all dead windows of foo (garbage-collect) (hash-table-count window-dead-windows-table) --------------LljYayqEV1Ur0nfWMbfh90n8 Content-Type: text/x-patch; charset=UTF-8; name="windows-and-buffers.diff" Content-Disposition: attachment; filename="windows-and-buffers.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avd2luZG93LmVsIGIvbGlzcC93aW5kb3cuZWwKaW5kZXggOWZj MmU1ZDY1ZTguLjBhODJhYTk5ODlkIDEwMDY0NAotLS0gYS9saXNwL3dpbmRvdy5lbAorKysg Yi9saXNwL3dpbmRvdy5lbApAQCAtNDU0MiwxNCArNDU0MiwxOCBAQCByZWNvcmQtd2luZG93 LWJ1ZmZlcgogICAgICAgKHB1c2gtd2luZG93LWJ1ZmZlci1vbnRvLXByZXYgd2luZG93KQog ICAgICAgKHJ1bi1ob29rcyAnYnVmZmVyLWxpc3QtdXBkYXRlLWhvb2spKSkpCiAKKzs7IEEg dmVyc2lvbiBpbiBDIHRoYXQgaGFuZGxlcyBkZWFkIHdpbmRvd3MgKHRoYXQgcHJlc3VtYWJs eSBhcmUgcGFydCBvZgorOzsgYSBzYXZlZCB3aW5kb3cgY29uZmlndXJhdGlvbikgbGl2ZXMg aW4gd2luZG93LmMgYW5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b3IgaXRlbXMg d2hvc2UgY2FyIGlzIGEga2lsbGVkIGJ1ZmZlciBmcm9tCi0gICBMSVNULCBhbmQgbWFyayBv dGhlciBpdGVtcy4gIFJldHVybiBjaGFuZ2VkIExJU1QsIHdoaWNoIGlzIG1hcmtlZC4gICov Ci0KLXN0YXRpYyBMaXNwX09iamVjdAotbWFya19kaXNjYXJkX2tpbGxlZF9idWZmZXJzIChM aXNwX09iamVjdCBsaXN0KQotewotICBMaXNwX09iamVjdCB0YWlsLCAqcHJldiA9ICZsaXN0 OwotCi0gIGZvciAodGFpbCA9IGxpc3Q7IENPTlNQICh0YWlsKSAmJiAhY29uc19tYXJrZWRf cCAoWENPTlMgKHRhaWwpKTsKLSAgICAgICB0YWlsID0gWENEUiAodGFpbCkpCi0gICAgewot ICAgICAgTGlzcF9PYmplY3QgdGVtID0gWENBUiAodGFpbCk7Ci0gICAgICBpZiAoQ09OU1Ag KHRlbSkpCi0JdGVtID0gWENBUiAodGVtKTsKLSAgICAgIGlmIChCVUZGRVJQICh0ZW0pICYm ICFCVUZGRVJfTElWRV9QIChYQlVGRkVSICh0ZW0pKSkKLQkqcHJldiA9IFhDRFIgKHRhaWwp OwotICAgICAgZWxzZQotCXsKLQkgIHNldF9jb25zX21hcmtlZCAoWENPTlMgKHRhaWwpKTsK LQkgIG1hcmtfb2JqZWN0IChYQ0FSICh0YWlsKSk7Ci0JICBwcmV2ID0geGNkcl9hZGRyICh0 YWlsKTsKLQl9Ci0gICAgfQotICBtYXJrX29iamVjdCAodGFpbCk7Ci0gIHJldHVybiBsaXN0 OwotfQotCiBzdGF0aWMgdm9pZAogbWFya19mcmFtZSAoc3RydWN0IExpc3BfVmVjdG9yICpw dHIpCiB7CkBAIC03MDc5LDE1ICs3MDUyLDYgQEAgbWFya193aW5kb3cgKHN0cnVjdCBMaXNw X1ZlY3RvciAqcHRyKQogICAgICAgbWFya19nbHlwaF9tYXRyaXggKHctPmN1cnJlbnRfbWF0 cml4KTsKICAgICAgIG1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ZXIsIExpc3BfT2JqZWN0IGFsaXN0KQoreworICBMaXNwX09iamVjdCB0YWlsLCAqcHJldiA9 ICZhbGlzdDsKKworICBmb3IgKHRhaWwgPSBhbGlzdDsgQ09OU1AgKHRhaWwpOyB0YWlsID0g WENEUiAodGFpbCkpCisgICAgeworICAgICAgTGlzcF9PYmplY3QgdGVtID0gWENBUiAodGFp bCk7CisKKyAgICAgIHRlbSA9IFhDQVIgKHRlbSk7CisKKyAgICAgIGlmIChFUSAodGVtLCBi dWZmZXIpKQorCXsKKwkgICpwcmV2ID0gWENEUiAodGFpbCk7CisJICBicmVhazsKKwl9Cisg ICAgICBlbHNlCisJcHJldiA9IHhjZHJfYWRkciAodGFpbCk7CisgICAgfQorCisgIHJldHVy biBhbGlzdDsKK30KKworLyogUmVtb3ZlIGZpcnN0IG9jY3VycmVuY2Ugb2YgQlVGRkVSIGZy b20gTElTVC4gIFJldHVybiBjaGFuZ2VkCisgICBMSVNULiAgKi8KK3N0YXRpYyBMaXNwX09i amVjdAord2luZG93X2Rpc2NhcmRfYnVmZmVyX2Zyb21fbGlzdCAoTGlzcF9PYmplY3QgYnVm ZmVyLCBMaXNwX09iamVjdCBsaXN0KQoreworICBMaXNwX09iamVjdCB0YWlsLCAqcHJldiA9 ICZsaXN0OworCisgIGZvciAodGFpbCA9IGxpc3Q7IENPTlNQICh0YWlsKTsgdGFpbCA9IFhD RFIgKHRhaWwpKQorICAgIHsKKyAgICAgIGlmIChFUSAoWENBUiAodGFpbCksIGJ1ZmZlcikp CisJeworCSAgKnByZXYgPSBYQ0RSICh0YWlsKTsKKwkgIGJyZWFrOworCX0KKyAgICAgIGVs c2UKKwlwcmV2ID0geGNkcl9hZGRyICh0YWlsKTsKKyAgICB9CisKKyAgcmV0dXJuIGxpc3Q7 Cit9CisKK3N0YXRpYyB2b2lkCit3aW5kb3dfZGlzY2FyZF9idWZmZXJfZnJvbV9kZWFkX3dp bmRvdyAoTGlzcF9PYmplY3QgYnVmZmVyLCBMaX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ZmZXIsIHdp bmRvdy1zdGFydCwgd2luZG93LXBvaW50PiB0cmlwbGVzIGxpc3RpbmcKLSAgICAgICBidWZm ZXJzIHByZXZpb3VzbHkgc2hvd24gaW4gdGhpcyB3aW5kb3cuICAqLwotICAgIExpc3BfT2Jq ZWN0IHByZXZfYnVmZmVyczsKLSAgICAvKiBMaXN0IG9mIGJ1ZmZlcnMgcmUtc2hvd24gaW4g dGhpcyB3aW5kb3cuICAqLwotICAgIExpc3BfT2JqZWN0IG5leHRfYnVmZmVyczsKLQogICAg IC8qIE51bWJlciBzYXlpbmcgaG93IHJlY2VudGx5IHdpbmRvdyB3YXMgc2VsZWN0ZWQuICAq LwogICAgIEVNQUNTX0lOVCB1c2VfdGltZTsKIApAQCAtMTIyOCw2ICsxMjI2LDcgQEAgI2Rl ZmluZSBDSEVDS19MSVZFX1dJTkRPVyhXSU5ET1cpCQkJCVwKIGV4dGVybiB2b2lkIHdzZXRf YnVmZmVyIChzdHJ1Y3Qgd2luZG93ICosIExpc3BfT2JqZWN0KTsKIGV4dGVybiBib29sIHdp bmRvd19vdXRkYXRlZCAoc3RydWN0IHdpbmRvdyAqKTsKIGV4dGVybiBwdHJkaWZmX3Qgd2lu ZG93X3BvaW50IChzdHJ1Y3Qgd2luZG93ICp3KTsKK2V4dGVybiB2b2lkIHdpbmRvd19kaXNj YXJkX2J1ZmZlcl9mcm9tX2RlYWRfd2luZG93cyAoTGlzcF9PYmplY3QpOwogZXh0ZXJuIHZv aWQgaW5pdF93aW5kb3dfb25jZSAodm9pZCk7CiBleHRlcm4gdm9pZCBpbml0X3dpbmRvdyAo dm9pZCk7CiBleHRlcm4gdm9pZCBzeW1zX29mX3dpbmRvdyAodm9pZCk7Cg== --------------LljYayqEV1Ur0nfWMbfh90n8--
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 17 Jun 2024 14:48:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 17 10:48:29 2024 Received: from localhost ([127.0.0.1]:34970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sJDen-00088z-Fk for submit <at> debbugs.gnu.org; Mon, 17 Jun 2024 10:48:29 -0400 Received: from mout.gmx.net ([212.227.17.22]:45757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sJDel-00088k-L2 for 59862 <at> debbugs.gnu.org; Mon, 17 Jun 2024 10:48:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1718635697; x=1719240497; i=rudalics@HIDDEN; bh=VvZwhhMaEkBr7O4LoZR0BLe7Mx2Av+JYYpb5mQhA4/c=; 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=NvIXMgsjr+N2qH//zfuuhg6V4OctbOMgbsnCA3uQbNIIFOu6KfH1ZURG2iWJtFjD d3LMSKuDzXrCmh4xM6RjTCSmR+k8NZlteoB0T2ZOFNOplymg2PPSxa/geeZY35Ypc SyuRH5ic8XhcW+q9J1Cg9ZFWPPPOx98HfYummc9fRmFiH0Cj2NIM8lxFlyayAbRqA eh2tojVZ2McLYOg0nW+dw4wDzXqCYAFc+uScx4M4BIw9veDyH1clFXjLqu7gfAlM+ hpW4CmgpcwAyvlHCaTlPk4tboeAcX31ayx5ASCYQHWj1wHcwyqZ+VFpMF41qcl7oF +AXdo6wGrKyLP06GBA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.42]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mwfac-1sZFOt0HIw-010mid; Mon, 17 Jun 2024 16:48:17 +0200 Message-ID: <3e839dd9-e1fc-445c-9170-5d48add5dfaf@HIDDEN> Date: Mon, 17 Jun 2024 16:48:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> <86plsgrfvu.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86plsgrfvu.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:YFBfXm29KDK6/ZMrtftVvIXjmIgJ75sR3olLOIpTElQztWZEsEb 4JYxK9zqW04iadv50hltESJJnaXfG+gp8/awhJxAisPJsDRTDMygIvicIppCNArHDR9FUYg KF+coQ4rdTtfnkGZofIRScbSfD2DGTdNkZM5YWk72VzUT3tXU0gb5BqDLDJqcd1D4HJRexh vnmlrSvzEYZwUn9vGDKJQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Eqh0JJr6YDY=;mviVtWaddLOz58uZBtSN5TboMWX 52DMK6vakjNi4FNnQoiiFO1Eii3YvFyR3j5Z49ZEwekCxzdatTSujuihDlWf6W1aXxiUvrGJp 3Ok3uDHDbWq6g2aYhrcBPHU0ddxWpCw7qPp6/6KFwmyRO0inZk91twOcq4w5l7cAtvgaa271X zSXyaahP8bm7X6L8uVrq4Vm4O22RKpOlolpSSdisBkfzSEgsHcDoFGXZ4mVdUF0Vz1TAROuh2 4G0xLmmg6Wph55rj0+TM6fUkT1sQEZJD/AyD/dEP2h1VtVDm3otedceJuPaunQHps5cOIDyzN YQfKFsrOaLgmGH1lAb0RVwryJtuTLcOc/mYtHYOTtxuLQ20vx909m43IOqmI8H5xqzCrrtQIj /MM9WIMxEudpjAApvIeRXM3qmZfgQaQGtVb+j2xsRMd7mdizJ8v89+jqcGSpTyQrzw7NwfWGL i1iq6unh3YvJH43xWlIhEr20RGf0f293HQX6v9TdDqySTqpQeqCM2Em/d+y6TE3tTgnpQ5ASA kozZaG4URyxOOU3J44x+M99Lt5n0BdwQflBvXYM7UDncyckEUrN44Tj7TmJ8EVZCffFuz3D7s 4YJQzSW3Co5ggubI8low3FUloL9yf/IJcYlwE3jzF3KznLDKUwS/KcnHQ6kizxXOVWYsWk9gL 1j1vrtcQfMrUJjqrjNVeiaadLleGX53YrIPaO52/98/jFqodAeTBx6B9DbCWcHTrI1Uv/BO+o tyEvQt5nWbZZsJEd4y13xkk3riOE/otKvZ7Bikk23ElXswmqro6QS9YXliSM3kRACRFP9cGDl YLPym0Kza+DMpSciO1st2VJiXDWQOkmbY4RrIDa+WJp9s= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) > + (window-list-1 nil 'nomini)) As I said before nil as argument for 'window-list-1' is not correct. 'window--delete' can be called by 'quit-windows-on' which has to work for quitting any window on any frame. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.42 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.22 listed in wl.mailspike.net] -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) > + (window-list-1 nil 'nomini)) As I said before nil as argument for 'window-list-1' is not correct. 'window--delete' can be called by 'quit-windows-on' which has to work for quitting any window on any frame. Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.42 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.22 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager > + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) > + (window-list-1 nil 'nomini)) As I said before nil as argument for 'window-list-1' is not correct. 'window--delete' can be called by 'quit-windows-on' which has to work for quitting any window on any frame. >>> + (window-list-1 nil 'nomini)) >> >> I suppose that nil is not correct here when WINDOW is not on the >> selected frame. I'd rather use that window instead here. > > The current code doesn't support non-selected frames > as 'tab-bar-close-tab' below shows without a frame argument: Then we can't use it. Please have a look at the patch I sent earlier. The tab-bar code would have to add a function to 'window-deletable-functions' provided some tab-bar option says to do that. Thanks, martin
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 16 Jun 2024 16:53:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 16 12:53:52 2024 Received: from localhost ([127.0.0.1]:43625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sIt8a-0002TS-3h for submit <at> debbugs.gnu.org; Sun, 16 Jun 2024 12:53:52 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sIt8Y-0002Su-KN for 59862 <at> debbugs.gnu.org; Sun, 16 Jun 2024 12:53:51 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id A173EFF802; Sun, 16 Jun 2024 16:53:39 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> (martin rudalics's message of "Sat, 15 Jun 2024 10:41:54 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> Date: Sun, 16 Jun 2024 19:50:29 +0300 Message-ID: <86plsgrfvu.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) > > The entire clause in 'quit-restore-window' governed by > > (eq (nth 1 quit-restore) 'tab) > > needs a comment on what it is supposed to restore. So here is a comment: diff --git a/lisp/window.el b/lisp/window.el index b7bd59bc813..5b782c93098 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5241,9 +5246,13 @@ quit-restore-window (window--delete window 'dedicated (eq bury-or-kill 'kill))) ;; If the previously selected window is still alive, select it. (window--quit-restore-select-window quit-restore-2)) + ;; Close the tab if it doesn't contain more explicitly created windows. ((and (not prev-buffer) (eq (nth 1 quit-restore) 'tab) - (eq (nth 3 quit-restore) buffer)) + (eq (nth 3 quit-restore) buffer) + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) + (window-list-1 nil 'nomini)) + 2)) (tab-bar-close-tab) ;; If the previously selected window is still alive, select it. (window--quit-restore-select-window quit-restore-2)) > Basically, you check > here whether WINDOW is the only window with a 'quit-restore' parameter. > Is it that what you really want? If a window has a 'quit-restore' > parameter whose second element is 'tab' does that mean that all other > windows on the same frame must also have such a parameter? What happens > if there are other windows without a 'quit-restore' parameter? If there are other windows without a 'quit-restore' parameter, this means that they were created implicitly without a direct user action. So the tab can be closed in this case. There are not many commands that create windows without a 'quit-restore' parameter. For example, Gnus creates several windows, and the tab should be closed when the user closes the first window. > As designed, the 'quit-restore' parameter can cause the deletion of its > window only if there are other windows on the same frame. It can cause > the deletion of its frame only if there is no other window on its frame. > Are these principles preserved by your patch? Yes, the patch closes the tab only if there is no other window on the tab explicitly created by user. >> + (window-list-1 nil 'nomini)) > > I suppose that nil is not correct here when WINDOW is not on the > selected frame. I'd rather use that window instead here. The current code doesn't support non-selected frames as 'tab-bar-close-tab' below shows without a frame argument: >> + 2)) >> (tab-bar-close-tab) >> ;; If the previously selected window is still alive, select it. >> (window--quit-restore-select-window quit-restore-2))
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 15 Jun 2024 08:42:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 15 04:42:07 2024 Received: from localhost ([127.0.0.1]:54685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sIOz9-0005IJ-Jh for submit <at> debbugs.gnu.org; Sat, 15 Jun 2024 04:42:07 -0400 Received: from mout.gmx.net ([212.227.17.22]:43285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sIOz7-0005Gj-7O for 59862 <at> debbugs.gnu.org; Sat, 15 Jun 2024 04:42:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1718440915; x=1719045715; i=rudalics@HIDDEN; bh=fBRDwDHzR88tBG0X0pnmIKdcyWjOQsM3pUotVEeD2Yk=; 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=SnmnSsdDeGsdY63T0gdYzlmHDaht/uNqHBR2KtnQ1ZkHxdPD6GzYrqY1+YPkTgY3 RGYjvTdRN7QKLx0p6jrUhtoA2HrO2HRuOJJStCfZ5Q55JDnbnPS8925F1pPXLdccV baAGJDZp6mkBwZ+ocpWDjm+OgD9GN0/frEnLxmZ0gqR8SEB4JuDCsUiP41ZdXGB/n 7Wh675HN86hh6xCftl1aCnIyw5AFOrNSmoRCx5ZaEMj5pXZqcJ3hYhhM8gd7P9Uf0 /e1rWJLuNdwKRUsTDZtTFrAB229zOrcuAM7lqVCjSLWK53Ssv8yR0Z5U+QF5ecyyi wuJsyw4JrTGNuFAWTA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.155]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUowb-1rrh222IPR-00TNtx; Sat, 15 Jun 2024 10:41:55 +0200 Message-ID: <ad0bfe5d-817b-4d11-b82f-90c5a76b4c81@HIDDEN> Date: Sat, 15 Jun 2024 10:41:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> <86msnne7ut.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86msnne7ut.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:UTS+swE3zZIxt3/+2rDzfSZAUgzVI7AMRO/6QgjprYsH96EpdYN 3av2HA+zD7XmsYt21MYrLMAuPDlaaCfWqZIEZisH1+DQ+YFp2MMx8KB0rkrTGfWHplwHA5J czEtKo+XIl8BVAJ8yYoy9l52HscA+MEZGYs2h0z/KVRS22NJhmjbKopu+vw5kdhpNj6IzEY fLynPpKr1HN5mBuJvsRjg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:t7px0/0KyE0=;0HvSNCzHWu0IYgJ9jGcZ13wT+QV 2TJJzJb5zb+BiyKCriLBb91iWQ4n2spzfi1d+Kwc1U8Pr+afe/dzbiLDS+/y1GDd0Sol6nNhy GYtKSgOEQ890eV1PNQ3keGFBFWKwBgBavPnnvKTswAJ0eF/Ev4lJTkJX+hPuAmMqERSr23v9s QZPuwA4/Ecc2BeIAwi9yGn5fbuVdjzKtDGIHP1wT+fU4bFYJWTe2CvJ9lIF1vtxdiGvcquopY hj/JxFyHPCkW8RE1OW4B5DsD1R4TLgD8Ef8CYWHwW+6kWIk38roAQROgaqmb4O0jLwPuWd/H3 1jfSryAk2szZLCjyGxctcosphswKaQorx3Hf/71QDLxAd3lJowFHY8wjqubPmWRXVSwPPyeE7 DPfxFiIyV9Wq5UPEj26pb88B2UlTH4xPGsHP8hrPvJWlphvM7hPZD0Q4TFaxlDkF775hnYEW/ 2kw+p1KRs1YcVRDwHbEfoDrDBNuAH0vpG7rXoUMm44h9zvwE7zllLxTadFaT5BYPBx0l2ZYu7 p7Vdnia+Ms5Fe6bolUFxs9J5rcYmzVftkcKJkKolXLm5bWaqivh5QtvqEfkBhE6oUZUg34dA1 1vNr98TnIcJALvRagoX9f4ZSfcQuPCqLCHgwpo/vze5U6Y7amB3/aTiNLZfG0B/pDwbJhzo2I e82thsgCYT8VcyzAxV0mWttm4fhFpGLfyYIKsTy+ujBI4Hp9nFkEW/dmYA4bLeOlv/dr/2BeP LKs0Z2vrQPRuRhBdGRw+u2/9bv/T245ndMVdI9HAP5Hl6N/1gh0zTXZsgT5KkTZeic74lCx3H 1g+8RNa58VZlE4sbzJ9maE+MjRUtoktzXN3qop2fRTPx0= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) The entire clause in 'quit-restore-window' governed by (eq (nth 1 quit-restore) 'tab) Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.155 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.22 listed in wl.mailspike.net] -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) The entire clause in 'quit-restore-window' governed by (eq (nth 1 quit-restore) 'tab) Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.155 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.22 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) The entire clause in 'quit-restore-window' governed by (eq (nth 1 quit-restore) 'tab) needs a comment on what it is supposed to restore. Basically, you check here whether WINDOW is the only window with a 'quit-restore' parameter. Is it that what you really want? If a window has a 'quit-restore' parameter whose second element is 'tab' does that mean that all other windows on the same frame must also have such a parameter? What happens if there are other windows without a 'quit-restore' parameter? As designed, the 'quit-restore' parameter can cause the deletion of its window only if there are other windows on the same frame. It can cause the deletion of its frame only if there is no other window on its frame. Are these principles preserved by your patch? > + (window-list-1 nil 'nomini)) I suppose that nil is not correct here when WINDOW is not on the selected frame. I'd rather use that window instead here. > + 2)) > (tab-bar-close-tab) > ;; If the previously selected window is still alive, select it. > (window--quit-restore-select-window quit-restore-2)) martin
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 14 Jun 2024 18:04:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 14 14:04:49 2024 Received: from localhost ([127.0.0.1]:40891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sIBI8-0004cJ-Mp for submit <at> debbugs.gnu.org; Fri, 14 Jun 2024 14:04:48 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sIBI3-0004bz-Sq for 59862 <at> debbugs.gnu.org; Fri, 14 Jun 2024 14:04:47 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 35BDD1BF203; Fri, 14 Jun 2024 18:04:13 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> (martin rudalics's message of "Thu, 13 Jun 2024 10:21:32 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> Date: Fri, 14 Jun 2024 20:35:30 +0300 Message-ID: <86msnne7ut.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > The check is in 'window-deletable-p' which may return 'frame' iff WINDOW > is its frame's root window. Maybe you also want to check whether the > second element of 'quit-restore' is 'frame' but that I cannot tell. Ok, so here is the corresponding fix for the case: C-x t t ;; other-tab-prefix C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window diff --git a/lisp/window.el b/lisp/window.el index b7bd59bc813..f206153e017 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5243,7 +5258,10 @@ quit-restore-window (window--quit-restore-select-window quit-restore-2)) ((and (not prev-buffer) (eq (nth 1 quit-restore) 'tab) - (eq (nth 3 quit-restore) buffer)) + (eq (nth 3 quit-restore) buffer) + (< (seq-count (lambda (w) (window-parameter w 'quit-restore)) + (window-list-1 nil 'nomini)) + 2)) (tab-bar-close-tab) ;; If the previously selected window is still alive, select it. (window--quit-restore-select-window quit-restore-2))
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 13 Jun 2024 08:21:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 13 04:21:42 2024 Received: from localhost ([127.0.0.1]:33723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sHfiI-0006N4-A2 for submit <at> debbugs.gnu.org; Thu, 13 Jun 2024 04:21:42 -0400 Received: from mout.gmx.net ([212.227.17.21]:42647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sHfiF-0006Mf-NV for 59862 <at> debbugs.gnu.org; Thu, 13 Jun 2024 04:21:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1718266893; x=1718871693; i=rudalics@HIDDEN; bh=2Sx3CD79szLSKbii9c4kiPuvypBruMepOkceYeyl5+k=; 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=SRTHHBKw2mPon4NRexZl9k7ViXy/OGs/j0ufELhaE8xPFZ0FjQ4k1kT5wb8DJkVM C27HaA/clMkR5tZUiW05pMm6dhckuFKHP9Zmgoa+c4DZ6yqCz5wXlKjjr6Q+QzsBq bvvWSlMi1kmmVMinZNJA3WteBsJzrP8ThM9N6qjquv0MR/MJwVfBIfHefupTgBp0K rGzgIKqxbQTiOVXhGF266xzMjEPRzsDiq2v7tN5/ZnbmcKQsBJA22ocijhwiQU3zo 4iS+BWFQHluM1JSKxN2Zs/J1WUu2naQSOtGGyN1HkqUeze1lMSp3v4twJ/QNMZZpt zF+2I5Wy6IiGrmi0bw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.56]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MG9g4-1sC8sT1kR2-00FGdo; Thu, 13 Jun 2024 10:21:33 +0200 Message-ID: <743dc4dd-cf09-4c5e-9209-b63a47480e0b@HIDDEN> Date: Thu, 13 Jun 2024 10:21:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> <86frthjq4y.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86frthjq4y.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:CkIHOv7ZZiR53yQ9JMBmlYzUJB4zEvWz1X+vPIDrPwIPyMdnVP5 xaPVE7KqrmG/kp8OJdFGJXbaaR7FS42HFrnvisrGQjtPgAJWqtAJXxIudcELze7pFwyfbW7 0fLUdPcN6XD1xqke1aTUTT98QnF4wYZ2CTZj2S2Lkr14tmlDJww7F7rumkpenAQBHNwI6Uw t/ztiWdkOGmLhTWjwuqFA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:yR7OIn5/FX8=;1vZzJp4n1ivcaHE43HaumQirdEF hT3N4S7ucCi26QYdT5qa3Qu21IEgT1YNdY1NzoCavdd39PS682iNc0J456Wo0gtFAZzwc5Y6m gXOAil3zeAlFXEFwb3LWvuZQUZNlWT6gulwHZ+zho25bhs7KvdHMPNhQLHAJ9eZqHymHoS9Lk ucsNNzMTL2rG8lkbmb9N4ZOr0RRN30HQrgLEGTxWnXcTGo6s9Fgk/BSww9SH4dz9E1IZBDIwy YvFqPOwoOs/fZftXjJNJztmFI8tNVJLI3XMTlVjwILdHq6H3F59JwHvrJaVSX9JaoXEOi8eFt yZ8yK1Ef2x8vgK01jmYBpqD+dooNcphXhgH7eT2Q2cY2GwBZonluMP26Z0plTecSbtWk8Tr+c DbucMLue6bRmIV32ED4bFZgoe9YT99+BxE+dgsb3q+1MgzWvAI0B6rOZL1yKJXTlQmjGccknq Q+acdGZw2I9ChPLxXUfy/Xm5dLVAcTPM+8ge+4z47xNGBoVhm2uVe4TfK8pGYDtNXJOXQ/FPk jMBHgR36/SyKV2Wnjcs+c6yLvV/ZkBatxsExVppIJeggQPcf+lRsLCRH2wGjM1VJ1JV8Q1829 Gx5PlSvjy7zVLXLsfyAyB1r4ZLyDY15tFRXJwpPieumCnyrGCpIvZ72phs2P9fdHoJV3sKByb jOhB8FO9pCVcF9PjOpJLGUzNHYDEHmN/sVwdnL1BZh9J2ahoP+xNZ5pvecR7a18Na71AbjOqA 8+CMdcP2106TZ5wjcuKo+3fM1nYYXayMvunFoveubadU5mRtI3l2zXQTu/4O+ohsf6OqaIzo1 9L9tVXpfvE8yEE29gilXvmAaTn0xUKJAYhVbAOWwqLwNY= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Could you show how the frame function corresponding to 'tab-bar-close-tab' > (I suppose it's 'delete-frame'?) Hardly. 'delete-frame' unconditionally deletes a frame regardless of how many windows it displays unless it is the last frame, a surrogate minibuffer frame or some other special condition holds. > detects that where are more than 1 window > on the frame, then it refuses to delete the frame. Then same code could be > used in 'tab-bar-close-tab'. The check is in 'window-deletable-p' which may return 'frame' iff WINDOW is its frame's root window. Maybe you also want to check whether the second element of 'quit-restore' is 'frame' but that I cannot tell. Note in this context that 'window-deletable-p' does not cover all special cases handled by 'delete-frame' - things like the 'delete-before' parameter or the 'delete-frame-functions' hook. So far, this apparently has not caused any problems though. martin
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 13 Jun 2024 07:13:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 13 03:13:40 2024 Received: from localhost ([127.0.0.1]:57865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sHeeR-0003We-Rb for submit <at> debbugs.gnu.org; Thu, 13 Jun 2024 03:13:40 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sHeeQ-0003W7-GS for 59862 <at> debbugs.gnu.org; Thu, 13 Jun 2024 03:13:39 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4D66660008; Thu, 13 Jun 2024 07:13:10 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> (martin rudalics's message of "Wed, 12 Jun 2024 10:57:34 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> Date: Thu, 13 Jun 2024 09:47:09 +0300 Message-ID: <86frthjq4y.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> C-x 5 5 ;; other-frame-prefix >> C-h i ;; info >> q ;; quit-window >> This deletes the frame. >> >> C-x 5 5 ;; other-frame-prefix >> C-h i ;; info >> C-h e ;; view-echo-area-messages >> q ;; quit-window >> This doesn't delete the frame because another buffer was used. > > Here it doesn't delete the frame because it contains two windows. > 'quit-window' deletes the *info* window and the *Messages* window > remains. When I do C-x o q q instead it first shows the *info* window > only and then deletes the frame just as I would expect. The current behavior for frames looks correct. > BTW 'view-echo-area-messages' has a bug: The 'goto-char' moves point in > the *Messages* buffer in an undocumented manner. It should be written > as: > > (defun view-echo-area-messages () > "View the log of recent echo-area messages: the `*Messages*' buffer. > The number of messages retained in that buffer is specified by > the variable `message-log-max'." > (interactive) > (when-let ((win (display-buffer (messages-buffer)))) > (set-window-point win (point-max)) > win)) Agreed. >> So frames are handled correctly. But not tabs: >> >> C-x t t ;; other-tab-prefix >> C-h i ;; info >> q ;; quit-window >> This correctly closes the tab. >> >> C-x t t ;; other-tab-prefix >> C-h i ;; info >> C-h e ;; view-echo-area-messages >> q ;; quit-window >> But this also closes the tab, this is a destructive operation, >> because the user has another buffer shown in the tab. > > Here I get two windows. The 'quit-restore' parameter of the *info* > window is > > (tab tab #<window 7 on *info*> #<buffer *info*>) > > that of the *Messages* window is > > (window window #<window 7 on *info*> #<buffer *Messages*>). > > So if I now do q in the *info* window, it will run 'tab-bar-close-tab'. > It's up to that function to DTRT here. Could you show how the frame function corresponding to 'tab-bar-close-tab' (I suppose it's 'delete-frame'?) detects that where are more than 1 window on the frame, then it refuses to delete the frame. Then same code could be used in 'tab-bar-close-tab'.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 12 Jun 2024 08:57:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 12 04:57:46 2024 Received: from localhost ([127.0.0.1]:37522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sHJnd-0006PS-NA for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 04:57:45 -0400 Received: from mout.gmx.net ([212.227.17.22]:50695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sHJna-0006PB-MM for 59862 <at> debbugs.gnu.org; Wed, 12 Jun 2024 04:57:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1718182655; x=1718787455; i=rudalics@HIDDEN; bh=B2UgbEoqPcQ6bdIvScqnZJS20Kuiq5tCZO5nyKjOpzI=; 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=SEoYcNwVmdLMq92xDaG+QoyvbaWnLhyjZ7/CCH40FYqXM5cMsnAc1zcPLGAKNEoV 54nEP1DglMbldahgLJAFBD06dmETnBsMOEZ14Ew3FuyuiCziN92CWv/DmojxgVTWn oNtfao8r+igra1QcBkRZk2t9BkDfQC3A4mZlpJDHW9AlcpWKd1qLxpxoNirFLxmZa YsssBrGZz11FPnRrJu7j1RTFcJBFdGZnsDzZC1S4xRVfVRofF+mrDQMvL+24c4tr6 my2i+U743kN71q05QVZGI3nspTztMCiv5ZQQ3UJAZBow8E4BHDMnnTpnObWizCxm6 eINVN5v18U60yFKTeQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([46.125.249.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5VD8-1sSvNl0exG-014L3F; Wed, 12 Jun 2024 10:57:35 +0200 Message-ID: <0d01a044-d7d6-456a-9ba9-d987faad4332@HIDDEN> Date: Wed, 12 Jun 2024 10:57:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN> References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> <86r0d4ezdc.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86r0d4ezdc.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:2IYKbBrjWiRJRO3M3f527O9Q4YaWLYOhFIotzxW/aMyhmgoRXUb ZbLEnBQxGTR1+MEzVSxyVQftpae80+UGpweoN26+4AHcAwa8EziTZxkPLJus2tC2YzdS358 ScYth4WnjfCB3W3l+KVgp1bHmfHt68GZbg9qxSYTVtwYhtLg8cM3i1QoPI7DBxLqTWlIROk UjSQdtmGXLgUePWilt1tg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:XD+XCXa0mxQ=;K+aT9cvG/XgRVIx62oaHAikKIdw Vrcx4gwGJ9coZCZfJgITM5zsFxj7CGkh9sqKndbu11fhrmIn5miH4KXgnFKKuUtArxbEzacpN BFE0rZ98tNGsIIPuqhpPzlavMxAqHLTILA+Fx4K91uX1gUPusJWXOFCm6UQlyzFtWh2ciTsL0 pI18/yFjk5WoNNFEs/EnHfQw33F9XOpXUSij0WvE0bikbQs5514UWrKNVB3521dkkeMJqOLZW Bhc5wxp2RY82uNyJeA7qu9C/9Es9KixhDE2GUtamycAaMk/BiUyxSBGIJvopB/rsdoJnnbDOf FUttIr3ETNRYsM7Dqx1h3wYsLKe6UxJMtYY1BS1rDuxmfcf/i4EihiV1r+Tz/r3P/C+nL7A8T cyKWmEUcue0atA+6b2RZaa8u86pZUcTfgE2xaJ9aUOn5D6MiHnVlTYYYsXeQr1JXAlAclBHbK Q+yELFQzfiElgQFhNRsPjWROKOwQsxIPL/P1CXKIZaANlFGoRakddrAXurgyWoocgwNd+ar8S 9Bs6HnzZA5JMFCaJuCHiFAgBYrACMM7hI8JvtOda4bfgYh1GpiVFWKf49z2KtwgGNPuCJmrZf zTi+yottIpUcTBkYPShYAcKtXcwgUip0MvhBPvaEUdsWQY20HktksCje1Dq+62riusiicEGje WTzpTi0qCz/2JbQAg1KZnC+pkTkel5FBM1riqnHQkNrt1qHS9MNZxFVpnlnmIGO6Tr0bQQd+y HUfBAjH5l9TgZ5nCU/7BFCRxpW7TOiN6WmPUw6Jemu/u61D3RJPBDBaQD2CpZEFwBJK5N9v+q ryshxSJUyrsxltv2RFHKpjOrfYC8FghaF0QJamfflci8o= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > C-x 5 5 ;; other-frame-prefix > C-h i ;; info > q ;; quit-window > This deletes the frame. > > C-x 5 5 ;; other-frame-prefix > C-h i ;; info > C-h e ;; view-echo-area-messages > q ;; quit-window > This doesn't delete the frame because another buffer was used. Here it doesn't delete the frame because it contains two windows. 'quit-window' deletes the *info* window and the *Messages* window remains. When I do C-x o q q instead it first shows the *info* window only and then deletes the frame just as I would expect. BTW 'view-echo-area-messages' has a bug: The 'goto-char' moves point in the *Messages* buffer in an undocumented manner. It should be written as: (defun view-echo-area-messages () "View the log of recent echo-area messages: the `*Messages*' buffer. The number of messages retained in that buffer is specified by the variable `message-log-max'." (interactive) (when-let ((win (display-buffer (messages-buffer)))) (set-window-point win (point-max)) win)) > So frames are handled correctly. But not tabs: > > C-x t t ;; other-tab-prefix > C-h i ;; info > q ;; quit-window > This correctly closes the tab. > > C-x 5 5 ;; other-tab-prefix I suppose you mean C-x t t here. > C-h i ;; info > C-h e ;; view-echo-area-messages > q ;; quit-window > But this also closes the tab, this is a destructive operation, > because the user has another buffer shown in the tab. Here I get two windows. The 'quit-restore' parameter of the *info* window is (tab tab #<window 7 on *info*> #<buffer *info*>) that of the *Messages* window is (window window #<window 7 on *info*> #<buffer *Messages*>). So if I now do q in the *info* window, it will run 'tab-bar-close-tab'. It's up to that function to DTRT here. martin
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 11 Jun 2024 15:54:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 11 11:54:27 2024 Received: from localhost ([127.0.0.1]:35836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sH3pL-0000mB-FO for submit <at> debbugs.gnu.org; Tue, 11 Jun 2024 11:54:27 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:43917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sH3pJ-0000lz-Dz for 59862 <at> debbugs.gnu.org; Tue, 11 Jun 2024 11:54:26 -0400 Received: from relay2-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::222]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 15773C4DD7 for <59862 <at> debbugs.gnu.org>; Tue, 11 Jun 2024 07:11:49 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 91E9540008; Tue, 11 Jun 2024 07:11:40 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <86plsxmc6d.fsf@HIDDEN> (Juri Linkov's message of "Tue, 04 Jun 2024 09:53:14 +0300") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> Date: Tue, 11 Jun 2024 09:52:07 +0300 Message-ID: <86r0d4ezdc.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> I revisited it once more and attach my last patch. It also seems to >> DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a >> longer period of testing. > > Thanks, I started testing. I found one difference between frames and tabs: C-x 5 5 ;; other-frame-prefix C-h i ;; info q ;; quit-window This deletes the frame. C-x 5 5 ;; other-frame-prefix C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window This doesn't delete the frame because another buffer was used. So frames are handled correctly. But not tabs: C-x t t ;; other-tab-prefix C-h i ;; info q ;; quit-window This correctly closes the tab. C-x 5 5 ;; other-tab-prefix C-h i ;; info C-h e ;; view-echo-area-messages q ;; quit-window But this also closes the tab, this is a destructive operation, because the user has another buffer shown in the tab.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 5 Jun 2024 17:53:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 05 13:53:07 2024 Received: from localhost ([127.0.0.1]:52950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sEuot-0007dc-Ey for submit <at> debbugs.gnu.org; Wed, 05 Jun 2024 13:53:07 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:52337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sEuor-0007dE-4J for 59862 <at> debbugs.gnu.org; Wed, 05 Jun 2024 13:53:06 -0400 Received: from relay3-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::223]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 5E36FC5B66 for <59862 <at> debbugs.gnu.org>; Wed, 5 Jun 2024 17:12:07 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3FB8560003; Wed, 5 Jun 2024 17:11:45 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <86plsxmc6d.fsf@HIDDEN> (Juri Linkov's message of "Tue, 04 Jun 2024 09:53:14 +0300") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> <86plsxmc6d.fsf@HIDDEN> Date: Wed, 05 Jun 2024 19:56:14 +0300 Message-ID: <86le3jbrs1.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> I revisited it once more and attach my last patch. It also seems to >> DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a >> longer period of testing. > > Thanks, I started testing. The testing showed that now quit-restore works much better, and even supports tabs. Thank you very much.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 4 Jun 2024 06:54:45 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 04 02:54:45 2024 Received: from localhost ([127.0.0.1]:56223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sEO4C-0008M7-NE for submit <at> debbugs.gnu.org; Tue, 04 Jun 2024 02:54:45 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:37379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sEO49-0008Ls-M9 for 59862 <at> debbugs.gnu.org; Tue, 04 Jun 2024 02:54:43 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 737E71C0005; Tue, 4 Jun 2024 06:54:01 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: martin rudalics <rudalics@HIDDEN> Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> (martin rudalics's message of "Mon, 3 Jun 2024 18:09:52 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> Date: Tue, 04 Jun 2024 09:53:14 +0300 Message-ID: <86plsxmc6d.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: 59862 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > I revisited it once more and attach my last patch. It also seems to > DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a > longer period of testing. Thanks, I started testing.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 3 Jun 2024 16:10:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 12:10:21 2024 Received: from localhost ([127.0.0.1]:46206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sEAGG-0001O0-QU for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 12:10:21 -0400 Received: from mout.gmx.net ([212.227.15.19]:56935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sEAGD-0001NH-I1 for 59862 <at> debbugs.gnu.org; Mon, 03 Jun 2024 12:10:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1717430994; x=1718035794; i=rudalics@HIDDEN; bh=/RdQP2TzPs3VPreHlsvtQCroeznDfrKeThLsYoikeqs=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version: Subject:From:To:References:In-Reply-To:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=QcVPjjBPnIF01D2tvqx+roU5aSBvpgSNA6eSMdB3mwtN0lAVQLaLqaCeAk3wuigS G5oW2dG60eoGupGqj4Das0K+m9QGhoyoAD7dTOMYvvUu16zG6nZhrX8nMp+O0IlP6 kpTi/nioJNDWQPVpKUCoBeaKbFit9WxtAf0MczPp5LgLB/CwORswgdQSXwl2hrB8N SxPRLNTP1TzawR6g1ZQz50BrWRyYbdNanDD0PZdO743ZiHd+9GEbwFjO+zodHirRW Cf7/0Ig1sZq2SrDWNxWliHOgSVJtSbSkDi++0F2bQWioiQsNIC8KGB4MB1EkVzIAd Wa4cUbfDA7r6ZbXmiQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.97.31]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N79yQ-1sWdQ52IW4-017Y0n; Mon, 03 Jun 2024 18:09:53 +0200 Content-Type: multipart/mixed; boundary="------------xIisI0wIMSyB0RW73pBjpgJU" Message-ID: <f9eb9bae-6275-4448-9590-e72a56064220@HIDDEN> Date: Mon, 3 Jun 2024 18:09:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer From: martin rudalics <rudalics@HIDDEN> To: Juri Linkov <juri@HIDDEN>, 59862 <at> debbugs.gnu.org References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> Content-Language: en-US In-Reply-To: <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> X-Provags-ID: V03:K1:3pTaVu3ij+ch9p1LwDs2O7nabtI7OBxMB63/gJ6cXGex3JUtmW0 Q594xfzZ4haiKpD3Hnji9YItkw9zpe/aPs0tEp7P4euOg4yYchqeEhgvY5/QPSdn72FJ25q IqcM8wXRrz+4pxu+H1xjcYq2+XaG2QIB/qBgcYHwLbTurAWNfMv3LMTie/SmqOmggv0+qeR zCRU7oT+ZvYET1mHkEYDQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:FUnA26ER+CU=;vZ1M2glfBAEP19mUDrpPd84vDzk fh9lCYPkHkthf67V9qr2lRdcuWCsRnHfW9Pcb/TCZLR5wq0lQ1uCIWK3v86lGP0IJx4wcYcVL AkWcnSppsqJ/nnT0yy7cO9xpzuQkpkacpoXRmiVZQBwPkDK/bLob3JoC29Mld8ejIhd/1nfSk bbppmjdqfAi1kgpOg4c37dY2TUurvhp0sK/aP7tsg32j5mjWXHFYXDvqWN1GUtdMQDI4hzHy1 TurxPp5FRda5f6QKyIzQgiQmIxoOU+AUXjlzaE7fwtzm31kcpOrWNrjPW9FEnI22BJjxCkf5V if61zjnhopi+iP/+J9ma6v2r5yVIHOG9BLoSC5wX2IouuEW9MHut6pdhgknTHHopNyBuwuuDd 5xkMuSR7rIupaU8bwjTTLhp25vAS5CGaJ+gtCimjVd5ICc42iKh17MLVEacMlecd5WXC5/w8t JpL5JcPlW3boOtpXbztKC1cQseJ6Wc/NJcKWWqYvYVpOGYWPM+6/pXcC5+UT6gY75kqe4r9fC bKhocxlDt/xUooDAIKPtnL8Rn0R/0gGegzXS0UKFzZJpiOvSPYdMkmmNmWjEWWIq3IeUVJgH0 8YYufZCd/koUXkrepyPx8m++sDjsMZ21ircpKDQwpm+52AglhKX23ExdF70/P+gyiVkmnMzZY QEooU1smp4/90KGkiLkfQahhKQ1gHdbbDQI7gSMQmS7BMb0ftyyndOHNz8YJoHF/Lx6tqwpIQ u0PVpRyT81YVQ5yFZunO2KwKgPNR0EjgMsewVCN2r8pVzbTKtcFdAFCibHKhYUQtjtRM4FuRV BoDmGJmFSxfSBWe0BaKx4SfyidOx+UA6A4u1XwpHHHkXY= X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I revisited it once more and attach my last patch. It also seems to DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a longer period of testing. martin diff --git a/lisp/window.el b/lisp/window.el index b014be6a7cf..dcfc578ffd8 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4519,13 +4519,33 @@ unrecord-window-buffer "Unrecord BUFFER in W [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [213.142.97.31 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 59862 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I revisited it once more and attach my last patch. It also seems to DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a longer period of testing. martin diff --git a/lisp/window.el b/lisp/window.el index b014be6a7cf..dcfc578ffd8 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4519,13 +4519,33 @@ unrecord-window-buffer "Unrecord BUFFER in W [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [213.142.97.31 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This is a multi-part message in MIME format. --------------xIisI0wIMSyB0RW73pBjpgJU Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I revisited it once more and attach my last patch. It also seems to DTRT with C-x 4 d RET C-h C-t C-h C-n q q q but would still require a longer period of testing. martin --------------xIisI0wIMSyB0RW73pBjpgJU Content-Type: text/x-patch; charset=UTF-8; name="quit-restore.diff" Content-Disposition: attachment; filename="quit-restore.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avd2luZG93LmVsIGIvbGlzcC93aW5kb3cuZWwKaW5kZXggYjAx NGJlNmE3Y2YuLmRjZmM1NzhmZmQ4IDEwMDY0NAotLS0gYS9saXNwL3dpbmRvdy5lbAorKysg Yi9saXNwL3dpbmRvdy5lbApAQCAtNDUxOSwxMyArNDUxOSwzMyBAQCB1bnJlY29yZC13aW5k b3ctYnVmZmVyCiAgICJVbnJlY29yZCBCVUZGRVIgaW4gV0lORE9XLgogV0lORE9XIG11c3Qg YmUgYSBsaXZlIHdpbmRvdyBhbmQgZGVmYXVsdHMgdG8gdGhlIHNlbGVjdGVkIG9uZS4KIEJV RkZFUiBtdXN0IGJlIGEgbGl2ZSBidWZmZXIgYW5kIGRlZmF1bHRzIHRvIHRoZSBidWZmZXIg b2YKLVdJTkRPVy4iCitXSU5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3BlcmF0aW9ucyB1c2luZyB0aGlzIHdpbmRvdy4KKwogUmV0 dXJuIHRoZSBidWZmZXIgc3dpdGNoZWQgdG8uIgogICAoaW50ZXJhY3RpdmUKICAgIChsZXQg KChmb3JjZS1zYW1lLXdpbmRvdwpAQCAtOTE1OCw2ICs5MjAzLDExIEBAIHN3aXRjaC10by1i dWZmZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ1ZmZlcikpCiAJ ICAgICAgIChkaXNwbGF5ZWQgKGFuZCAoZXEgcHJlc2VydmUtd2luLXBvaW50ICdhbHJlYWR5 LWRpc3BsYXllZCkKIAkJCSAgICAgICAoZ2V0LWJ1ZmZlci13aW5kb3cgYnVmZmVyIDApKSkp CisKKwkgIDs7IE1ha2Ugc3VyZSBxdWl0dGluZyB0aGUgd2luZG93IHdvcmtzLgorCSAgKHVu bGVzcyBzd2l0Y2gtdG8tYnVmZmVyLW9iZXktZGlzcGxheS1hY3Rpb25zCisJICAgIChkaXNw bGF5LWJ1ZmZlci1yZWNvcmQtd2luZG93ICdyZXVzZSAoc2VsZWN0ZWQtd2luZG93KSBidWZm ZXIpKQorCiAJICAoc2V0LXdpbmRvdy1idWZmZXIgbmlsIGJ1ZmZlcikKIAkgICh3aGVuIChh bmQgZW50cnkgKG9yIChlcSBwcmVzZXJ2ZS13aW4tcG9pbnQgdCkgZGlzcGxheWVkKSkKIAkg ICAgOzsgVHJ5IHRvIHJlc3RvcmUgc3RhcnQgYW5kIHBvaW50IG9mIGJ1ZmZlciBpbiB0aGUg c2VsZWN0ZWQK --------------xIisI0wIMSyB0RW73pBjpgJU--
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 3 Jun 2024 09:54:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 05:54:05 2024 Received: from localhost ([127.0.0.1]:59030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sE4OC-0006hV-HZ for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:54:05 -0400 Received: from mout.gmx.net ([212.227.15.19]:34885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sE4O7-0006gz-UM for 59862 <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1717408420; x=1718013220; i=rudalics@HIDDEN; bh=J6RK1wMwEWlVp3K8WQgcImdOTbtpHBXoyYDN2GsswJg=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version: Subject:From:To:References:In-Reply-To:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=StO+6+YaaTtQIuRf/S7Ij5OqkKaEwAkhhEIKOYD6TSFFiVATyksEhED88t0kH3B8 9gi3YGu19rMzwUFMIFz8+0DEAtBBvsTsyLcn5DjfTCsafin4rvd8KS6Y9as1OFvIw okXmzOkV2ZUNlAoqAl/PIJiZzhJkZtn++nQ+B+KoBiHgi9PyKELH+jtm57+hZYuT5 0VoG1dYZPXQ3ztQM3iSzYQOPxdP40xW7bzewKK7FeVTrpTiTtdt3yBYkEKmVhpgYd XwDfbMUVbKDfQjZsF06eiT6ENaI/HNRfQEj0kPBMf+SVDkfYd04no8dbBRsAHA49p YuS4ONqFXZ9Ap1bz4Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.29]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTAFh-1s2MPr0WWl-00RHjT; Mon, 03 Jun 2024 11:53:40 +0200 Content-Type: multipart/mixed; boundary="------------tmLxt90jOBkUU93V5IoK7Iy0" Message-ID: <18173da7-32e1-4f14-bbea-9a8fa66af7dd@HIDDEN> Date: Mon, 3 Jun 2024 11:53:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer From: martin rudalics <rudalics@HIDDEN> To: Juri Linkov <juri@HIDDEN>, 59862 <at> debbugs.gnu.org References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> Content-Language: en-US In-Reply-To: <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> X-Provags-ID: V03:K1:mKnE0wEV0VetjjH9QppUk0Ls2IMlOwqLpwbTnB1HWMvIrf7e9cj 9MU8iJJfihvv748fEErlO3iHFhtJ1iY+B7bmzc3l4BqRw+Q2VPE3BZnF593AS25UuhoBR7v 0S4+SEFwYvPkUsP4UeQGuH+YFUI83ygtRQL09uCWF729OZZKkLEDNu+ArRAnesUO2LMha1/ umN/Sx6xY7Jqzkcn7kRvg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:++0FRSCTpME=;GOVC76IGa8escn90+zkfe610i5Y UNVeK0zIZgqQM5Pwbyi9KhCfp0lPyDwX0FGfcfiTEMSP5/g19WU4qXTES8WIN/RFpW9nS8lgw 55JfWKBnkNd7JAL2XPiz07rcXJY8GHTTlyEHiXtbgE3FtrFj4MZxjm42tEHkaoILI5bT/lWgW bdo0m4Ud+48yWqWsOxE+AnJoG+oA3Hb1Oepx0QplY0sNVuVuBNb10Jj3oYE/OKCr5wd8QmFPA lW8IQJRHcPMe9MJr3cKCnxmsNkbFYJOE8ZTkcxsPc5knEvoDm00McY1/xsiAoqXreF+xInuFh MaUurBBZ0C0PgLex7iCXoWNob9pG6ZzL5yyoJx+uHugwhkoR0GJuwBBFBP2worGYHaJlOj7oX Ru2o2FD8oQg9g3Uw5fn3rsZWKajMCpnERwhxJp83NooT+8TFJl/PSzBajnBK/aTzLuzBM2ZMc f3cuGYiuQfWpQFi+jtimzaNuz+9nowLP1bYvQZckpv67snIHb5NmjabYGDyWvmjJGdcDwNQqE d7C+QZI4ytfHxv0RJZLFo1zt+Ay0N52f+T9uo9iXV+GETaRFGMa4xwI/uUXEkwJRmvXV+XxWQ 2fjZGa0wMkEwm/1dgUFPDKBFrUmz+y5z8s7jEtuCBUSJe3MtMPRzOv8hKPbxEuLY8h7s0BJ3E +smtAtVKpHprpQTMNjiVTfCYx/PHmMF5salZ/aECjg41Qh1v0IN3lPeyaSW9cPAFT13P9KCtX 7AT5Y28Ln2Lb2YrStw/V1/ItpGvgV2n7vMsIbBilH61Ii9cAJkkspAj/lZQEfw8CYquOqdt9A HDv/3BuC8kTqhD4RymS6N5scdKw0hWy5DTs8FYM09AtRS9RtwA7wu98o+et2S+WyUk X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The patch had an all to obvious bug when killing a buffer. Try the one attached here instead. But I have to think for a better solution in 'replace-buffer-in-windows'. martin diff --git a/lisp/window.el b/lisp/window.el index b014be6a7cf..ae30c50cddb 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4522,10 +4522,11 @@ unrecord-window-buffer WINDOW." (let* ((wind [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.29 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] X-Debbugs-Envelope-To: 59862 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The patch had an all to obvious bug when killing a buffer. Try the one attached here instead. But I have to think for a better solution in 'replace-buffer-in-windows'. martin diff --git a/lisp/window.el b/lisp/window.el index b014be6a7cf..ae30c50cddb 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -4522,10 +4522,11 @@ unrecord-window-buffer WINDOW." (let* ((wind [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.29 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This is a multi-part message in MIME format. --------------tmLxt90jOBkUU93V5IoK7Iy0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit The patch had an all to obvious bug when killing a buffer. Try the one attached here instead. But I have to think for a better solution in 'replace-buffer-in-windows'. martin --------------tmLxt90jOBkUU93V5IoK7Iy0 Content-Type: text/x-patch; charset=UTF-8; name="quit-restore.diff" Content-Disposition: attachment; filename="quit-restore.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avd2luZG93LmVsIGIvbGlzcC93aW5kb3cuZWwKaW5kZXggYjAx NGJlNmE3Y2YuLmFlMzBjNTBjZGRiIDEwMDY0NAotLS0gYS9saXNwL3dpbmRvdy5lbAorKysg Yi9saXNwL3dpbmRvdy5lbApAQCAtNDUyMiwxMCArNDUyMiwxMSBAQCB1bnJlY29yZC13aW5k b3ctYnVmZmVyCiBXSU5ET1cuIgogICAobGV0KiAoKHdpbmRvdyAod2luZG93LW5vcm1hbGl6 ZS13aW5kb3cgd2luZG93IHQpKQogCSAoYnVmZmVyIChvciBidWZmZXIgKHdpbmRvdy1idWZm ZXIgd2luZG93KSkpKQotICAgIChzZXQtd2luZG93LXByZXYtYnVmZmVycwotICAgICB3aW5k b3cgKGFzc3EtZGVsZXRlLWFsbCBidWZmZXIgKHdpbmRvdy1wcmV2LWJ1ZmZlcnMgd2luZG93 KSkpCi0gICAgKHNldC13aW5kb3ctbmV4dC1idWZmZXJzCi0gICAgIHdpbmRvdyAoZGVscSBi dWZmZXIgKHdpbmRvdy1uZXh0LWJ1ZmZlcnMgd2luZG93KSkpKSkKKyAgICAod2hlbiAoYnVm ZmVyLWxpdmUtcCBidWZmZXIpCisgICAgICAoc2V0LXdpbmRvdy1wcmV2LWJ1ZmZlcnMKKyAg ICAgICB3aW5kb3cgKGFzc3EtZGVsZXRlLWFsbCBidWZmZXIgKHdpbmRvdy1wcmV2LWJ1ZmZl cnMgd2luZG93KSkpCisgICAgICAoc2V0LXdpbmRvdy1uZXh0LWJ1ZmZlcnMKKyAgICAgICB3 aW5kb3cgKGRlbHEgYnVmZmVyICh3aW5kb3ctbmV4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YKIAkgKGxpc3QgJ290 aGVyCiAJICAgICAgIDs7IEEgcXVhZHJ1cGxlIG9mIFdJTkRPVydzIGJ1ZmZlciwgc3RhcnQs IHBvaW50IGFuZCBoZWlnaHQuCiAJICAgICAgIChsaXN0IChjdXJyZW50LWJ1ZmZlcikgKHdp bmRvdy1zdGFydCB3aW5kb3cpCg== --------------tmLxt90jOBkUU93V5IoK7Iy0--
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 3 Jun 2024 09:35:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 05:34:59 2024 Received: from localhost ([127.0.0.1]:59021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sE45i-0006ER-SF for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:34:59 -0400 Received: from mout.gmx.net ([212.227.15.15]:35363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1sE45e-0006EB-9L for 59862 <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:34:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1717407274; x=1718012074; i=rudalics@HIDDEN; bh=x7ngPJncLu2zWSPGzaonAK4KG8Qs1gRxAfZbMMlC9Ww=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version: Subject:To:References:From:In-Reply-To:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=io4ix7JpK3ec/Jm4EecxKDwGinyKl01/G9E9a53NMDY7v0/QSKFKUfdzrObF/ZzV Ch0mIzpyBB8duV3Ijg3zgSmgW4EovYXrxxIxEfw/ChpoKcZT43YARTYDs4wsY59nW HhmeiDOP52atsGugmYWclgIomZsBd3ncP8DZRI7EccApOpvU+d1V8AK1fThdFifh/ rCTDIyX2bagEh1A/x8Locs2S4CIHZsinFm6UNRKnIdz7qhRHGvl+wmsvuD61CcD9s IWSyOOuOHydO7bnswBlsabRfMBs69X+7YEocJL299A0zEqEsOngms7RLhlYU5OT04 yd6EGgkb+WvD1I8ALg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.29]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXGrE-1ryDmm0fr4-00VOJY; Mon, 03 Jun 2024 11:34:34 +0200 Content-Type: multipart/mixed; boundary="------------IC2I0Uy7drpTFuo2EwzOlvBQ" Message-ID: <8243325e-ed03-4e9e-b64f-c8225fb6dc60@HIDDEN> Date: Mon, 3 Jun 2024 11:34:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#59862: quit-restore per window buffer To: Juri Linkov <juri@HIDDEN>, 59862 <at> debbugs.gnu.org References: <86fsds8mlm.fsf@HIDDEN> <86ttibq1w1.fsf@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <86ttibq1w1.fsf@HIDDEN> X-Provags-ID: V03:K1:grXd230jyaCkhefQ9m5UjFGXaqn4BtRnCTJQNy3OWT2ufg1CkzT 1A4ybSxmm1W+UzSYXwM8Oi2fc8vzqHi0mgASWuoPdV2jSiCDqKYxK6R3eVDJkggFDl6L83a g7u6XSIQ2euL51kbrRhdqB3d+9jPjEA3Zjev1wH5Zoo81Qq9qMtTBj3AgQWUkGDauC2EMqU TqayKgV3lV/vd5Me+ymkA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:JBgaVkSZWuY=;UtabX/FBvgBK+tgUdKmFpDcJjNa 2s0v7FYh8+6DS3593o2+wYJKG/AaTjMoAdEBwavWe1Pt6xlW+oYT07gDsl+5beiOpWijP8Dt9 tamm5coHSj6QZ393yx9l4wqoOYpzScaqXPHT6HpiKCuI06eSpnxqulSrDivfY6OVz7YcmHeZg nVbeMejbPH41Fo2rsDM67JIPUCFwJtGAz4YXgJCgKC4LYLRdHdtOaHW1Hmg+A0CkWsGbWROz1 HW4OFTIWoRrtTz+gXInFpF2OuBbblNkwKGelfcEccNUSm4C5vi6nVUtlbb6q1cGsWPCa/kXS4 52bo2QMBGAWMiMMooxd7uk9Hqg4Q73bGSwrhz5p1g8I2L8UMUYr3FozO3nUhvZxD5Dgn4C/bk 0Uki5ZbZmYc0vb4JgpImKa1FNDZsFURefQRU6kebhqEJ9QC427/kWGNPUZKrJwkM09zO+tpZC PTG16OrF2gIhcjxV+P7pbJOh0sG6f1xO38/ZWmEhtuD0vYblQQPOCtQ7k9mpCLPzu/tMMOjaj xIXD6/0SStOsnyK29VPFxeFQYMvrpyo1DDa8Qnf7dNMs0UwFegZpXpXcX4+PEb8FanQBV4jJG aKjtXtbuVtyMY+Hnz0Q3Cbkq6rTmMhSvejUXG8PQAJk3lLt7APsaCV702MWQNUodahIaOh82s hm6QQ0dCzv/ThzveDp5pdT0YgE76v1JSxa3Gr6S0qUPeV6O9gTMaD0GCpdUHjvsGP5Q4mZA9q NSim3VoULpVFX4u7tD1RMgWJrIfA2fiSbI5srkLpxuiwfSY49P0KivGiYW2aWQopqI+XjK8Nl sfYRuHFqeIs1AoMWifD265cNhKMPwp8ggbZiNdi60GhBU4GJlHNCHl4M1vddmednWy X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Martin, do you agree with this? I tested this patch for a long time. > >> 1. C-x 4 d RET C-h C-t q q -- the bottom window is NOT deleted >> 2. C-x 4 d RET C-h C-t C-x k RET q -- the bottom window i [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.29 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.15 listed in list.dnswl.org] X-Debbugs-Envelope-To: 59862 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Martin, do you agree with this? I tested this patch for a long time. > >> 1. C-x 4 d RET C-h C-t q q -- the bottom window is NOT deleted >> 2. C-x 4 d RET C-h C-t C-x k RET q -- the bottom window i [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.95.5.29 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.15 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager This is a multi-part message in MIME format. --------------IC2I0Uy7drpTFuo2EwzOlvBQ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Martin, do you agree with this? I tested this patch for a long time. > >> 1. C-x 4 d RET C-h C-t q q -- the bottom window is NOT deleted >> 2. C-x 4 d RET C-h C-t C-x k RET q -- the bottom window is deleted >> 3. C-x 4 d RET C-h C-n C-x k RET q -- the bottom window is NOT deleted >> >> The accidental difference between the last two is that the former uses >> `switch-to-buffer' whereas the latter uses `pop-to-buffer-same-window'. 'switch-to-buffer' leaves the 'quit-restore' parameter the way it was set up by C-x 4 d. 'pop-to-buffer-same-window' changes it to the 'reuse' type. So one fix is to have 'switch-to-buffer' record the window when it does not obey display actions and it gets the 'reuse' type as well. This way there are no more accidental differences when quitting the help buffer. >> The root of the problem is that displaying a buffer in an existing >> window, or quitting a buffer in an existing window overwrites its >> window parameter `quit-restore', and thus invalidates the history of >> how the first window was displayed. We could fix the former in 'display-buffer-record-window' by having it not overwrite an existing 'quit-restore' parameter when it displays another buffer. Then 'quit-window' would always delete the window in the scenarios above instead of showing the dir buffer. The backside is that additional information recorded by 'display-buffer-record-window' like the now selected window or window sizes would no more get recorded. >> A partial fix that solves only the first test case above is at least >> not to overwrite `quit-restore' on quitting other buffers in the same >> window: You cannot simply fix the third test in 'quit-restore-window' alone because C-x k leaves the 'quit-restore' parameter of the NEWS buffer unchanged. That's arguably a bug: When killing buffers and in some other cases we should remove the 'quit-restore' parameter. >> diff --git a/lisp/window.el b/lisp/window.el >> index a11293d372a..e3b057599d5 100644 >> --- a/lisp/window.el >> +++ b/lisp/window.el >> @@ -5275,14 +5276,14 @@ quit-restore-window >> (set-window-prev-buffers >> window (append (window-prev-buffers window) (list entry)))) >> ;; Reset the quit-restore parameter. >> - (set-window-parameter window 'quit-restore nil) Why keep it here? After all, this one has accomplished its mission so keeping it looks like an UXB to me. >> ;; Select old window. >> ;; If the previously selected window is still alive, select it. >> (window--quit-restore-select-window quit-restore-2)) >> (t >> ;; Show some other buffer in WINDOW and reset the quit-restore >> ;; parameter. >> - (set-window-parameter window 'quit-restore nil) Keeping this one looks OK. If the buffer shown in the window is not the one the parameter mentions, chances are that a 'quit-restore-window' can eventually use it in the future. >> But the proper fix for other problems would be to replace the window >> parameter `quit-restore' currently shared by all buffers in the same window >> by a stack where every window buffer should keep own quit-restore data. >> There is already such a stack in `window-prev-buffers', so a possible >> solution would be to add quit-restore data to each buffer >> in window-prev-buffers. And how would such a stack handle intertwined 'next-buffer' and 'prev-buffer' calls? Stacks are one of those things that set apart computers from human beings. >> Alternatively, it would be nice to have an option that would prevent >> overwriting the initial value of the window parameter `quit-restore', >> thus `quit-restore-window' could delete the window regardless of >> how many buffers were displayed in that window, like it does in case >> of dedicated windows. I attach a patch that tries to do that. Here it handles all scenarios you describe above. However, it's by no means trivial and requires at least _one month_ of testing on your side. I have not addressed the (eq (nth 1 quit-restore) 'tab) case in 'quit-restore-window'. You have to look into this yourself. And there might obviously be other cases missing. martin --------------IC2I0Uy7drpTFuo2EwzOlvBQ Content-Type: text/x-patch; charset=UTF-8; name="quit-restore.diff" Content-Disposition: attachment; filename="quit-restore.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avd2luZG93LmVsIGIvbGlzcC93aW5kb3cuZWwKaW5kZXggYjAx NGJlNmE3Y2YuLjhiNzlhODkyNzBiIDEwMDY0NAotLS0gYS9saXNwL3dpbmRvdy5lbAorKysg Yi9saXNwL3dpbmRvdy5lbApAQCAtNTEwOCw4ICs1MTA4LDggQEAgZGVsZXRlLXdpbmRvd3Mt b24KICAgKGxldCAoKGJ1ZmZlciAod2luZG93LW5vcm1hbGl6ZS1idWZmZXIgYnVmZmVyLW9y LW5hbWUpKQogCTs7IEhhbmRs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tNTE0NiwxNyArNTE1Miwx OCBAQCByZXBsYWNlLWJ1ZmZlci1pbi13aW5kb3dzCiAgIChpbnRlcmFjdGl2ZSAiYkJ1ZmZl ciB0byByZXBsYWNlOiAiKQogICAobGV0ICgoYnVmZmVyICh3aW5kb3ctbm9ybWFsaXplLWJ1 ZmZlciBidWZmZXItb3ItbmFtZSkpKQogICAgIChkb2xpc3QgKHdpbmRvdyAod2luZG93LWxp c3QtMSBuaWwgbmlsIHQpKQotICAgICAgKGlmIChlcSAod2luZG93LWJ1ZmZlciB3aW5kb3cp IGJ1ZmZlcikKLSAgICAgICAgICA7OyBEZWxldGUgYSBkZWRpY2F0ZWQgd2luZG93IHVubGVz cyBpdCBpcyBhIHNpZGUgd2luZG93LgotICAgICAgICAgIChsZXQgKChkZWRpY2F0ZWQtc2lk ZSAoZXEgKHdpbmRvdy1kZWRpY2F0ZWQtcCB3aW5kb3cpICdzaWRlKSkpCi0gICAgICAgICAg ICAod2hlbiAob3IgZGVkaWNhdGVkLXNpZGUgKG5vdCAod2luZG93LS1kZWxldGUgd2luZG93 IHQgdCkpKQotICAgICAgICAgICAgICA7OyBTd2l0Y2ggdG8gYW5vdGhlciBidWZmZXIgaW4g dGhhdCB3aW5kb3cuCi0gICAgICAgICAgICAgIChzZXQtd2luZG93LWRlZGljYXRlZC1wIHdp bmRvdyBuaWwpCi0gICAgICAgICAgICAgIChpZiAoc3dpdGNoLXRvLXByZXYtYnVmZmVyIHdp bmRvdyAna2lsbCkKLSAgICAgICAgICAgICAgICAgIChhbmQgZGVkaWNhdGVkLXNpZGUgKHNl dC13aW5kb3ctZGVkaWNhdGVkLXAgd2luZG93ICdzaWRlKSkKLSAgICAgICAgICAgICAgICAo d2luZG93LS1kZWxldGUgd2luZG93IG5pbCAna2lsbCkpKSkKLQk7OyBVbnJlY29yZCBCVUZG RVIgaW4gV0lORE9XLgotCSh1bnJlY29yZC13aW5kb3ctYnVmZmVyIHdpbmRvdyBidWZmZXIp KSkpKQorICAgIC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RvcmUpKQorCSAgKHNldC13aW5k b3ctcGFyYW1ldGVyCisJICAgd2luZG93ICdxdWl0LXJlc3RvcmUgKHdpbmRvdy1wYXJhbWV0 ZXIgd2luZG93ICdxdWl0LXJlc3RvcmUtcHJldikpKSkKKyAgICAgIDs7IFVucmVjb3JkIEJV RkZFUiBpbiB0aGlzIHdpbmRvdy4KKyAgICAgICh1bnJlY29yZC13aW5kb3ctYnVmZmVyIHdp bmRvdyBidWZmZXIpKSkpCiAMCiAoZGVmdW4gd2luZG93LS1jb21iaW5hdGlvbi1yZXNpemFi bGUgKHBhcmVudCAmb3B0aW9uYWwgaG9yaXpvbnRhbCkKICAgIlJldHVybiBudW1iZXIgb2Yg cGl4ZWxzIHJlY292ZXJhYmxlIGZyb20gaGVpZ2h0IG9mIHdpbmRvdyBQQVJFTlQuCkBAIC02 NjczLDcgKzY3MDEsNyBAQCBkaXNwbGF5LWJ1ZmZlci1yZWNvcmQtd2luZG93CiAgICAgICA7 OyBXSU5ET1cgc2hvd3MgYW5vdGhlciBidWZmZXIuCiAgICAgICAod2l0aC1jdXJyZW50LWJ1 ZmZlciAod2luZG93LWJ1ZmZlciB3aW5kb3cpCiAJKHNldC13aW5kb3ctcGFyYW1ldGVyCi0J IHdpbmRvdyAncXVpdC1yZXN0b3JlCisJIHdpbmRvdyAncXVpdC1yZXN0b3JlLXByZXYKIAkg KGxpc3QgJ290aGVyCiAJICAgICAgIDs7IEEgcXVhZHJ1cGxlIG9mIFdJTkRPVydzIGJ1ZmZl ciwgc3RhcnQsIHBvaW50IGFuZCBoZWlnaHQuCiAJICAgICAgIChsaXN0IChjdXJyZW50LWJ1 ZmZlcikgKHdpbmRvdy1zdGFydCB3aW5kb3cpCg== --------------IC2I0Uy7drpTFuo2EwzOlvBQ--
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at 59862) by debbugs.gnu.org; 2 Jun 2024 06:51:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 02 02:51:03 2024 Received: from localhost ([127.0.0.1]:57712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sDf3X-0007v8-GV for submit <at> debbugs.gnu.org; Sun, 02 Jun 2024 02:51:03 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1sDf3V-0007ua-8C for 59862 <at> debbugs.gnu.org; Sun, 02 Jun 2024 02:51:02 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id F1B6C20003; Sun, 2 Jun 2024 06:50:41 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: 59862 <at> debbugs.gnu.org Subject: Re: bug#59862: quit-restore per window buffer In-Reply-To: <86fsds8mlm.fsf@HIDDEN> (Juri Linkov's message of "Tue, 06 Dec 2022 19:32:05 +0200") Organization: LINKOV.NET References: <86fsds8mlm.fsf@HIDDEN> Date: Sun, 02 Jun 2024 09:45:02 +0300 Message-ID: <86ttibq1w1.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59862 Cc: martin rudalics <rudalics@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Martin, do you agree with this? I tested this patch for a long time. > 1. C-x 4 d RET C-h C-t q q -- the bottom window is NOT deleted > 2. C-x 4 d RET C-h C-t C-x k RET q -- the bottom window is deleted > 3. C-x 4 d RET C-h C-n C-x k RET q -- the bottom window is NOT deleted > > The accidental difference between the last two is that the former uses > `switch-to-buffer' whereas the latter uses `pop-to-buffer-same-window'. > > The root of the problem is that displaying a buffer in an existing > window, or quitting a buffer in an existing window overwrites its > window parameter `quit-restore', and thus invalidates the history of > how the first window was displayed. > > A partial fix that solves only the first test case above is at least > not to overwrite `quit-restore' on quitting other buffers in the same > window: > > diff --git a/lisp/window.el b/lisp/window.el > index a11293d372a..e3b057599d5 100644 > --- a/lisp/window.el > +++ b/lisp/window.el > @@ -5275,14 +5276,14 @@ quit-restore-window > (set-window-prev-buffers > window (append (window-prev-buffers window) (list entry)))) > ;; Reset the quit-restore parameter. > - (set-window-parameter window 'quit-restore nil) > ;; Select old window. > ;; If the previously selected window is still alive, select it. > (window--quit-restore-select-window quit-restore-2)) > (t > ;; Show some other buffer in WINDOW and reset the quit-restore > ;; parameter. > - (set-window-parameter window 'quit-restore nil) > ;; Make sure that WINDOW is no more dedicated. > (set-window-dedicated-p window nil) > ;; Try to switch to a previous buffer. Delete the window only if > > But the proper fix for other problems would be to replace the window > parameter `quit-restore' currently shared by all buffers in the same window > by a stack where every window buffer should keep own quit-restore data. > There is already such a stack in `window-prev-buffers', so a possible > solution would be to add quit-restore data to each buffer > in window-prev-buffers. > > Alternatively, it would be nice to have an option that would prevent > overwriting the initial value of the window parameter `quit-restore', > thus `quit-restore-window' could delete the window regardless of > how many buffers were displayed in that window, like it does in case > of dedicated windows.
bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 6 Dec 2022 17:34:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 12:34:57 2022 Received: from localhost ([127.0.0.1]:44161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1p2bqL-00067o-4w for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 12:34:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:49600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1p2bqK-00067i-0W for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 12:34:56 -0500 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 <juri@HIDDEN>) id 1p2bqD-0007nv-Kz for bug-gnu-emacs@HIDDEN; Tue, 06 Dec 2022 12:34:55 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1p2bqB-0003Tk-3Z for bug-gnu-emacs@HIDDEN; Tue, 06 Dec 2022 12:34:49 -0500 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id D78822000A for <bug-gnu-emacs@HIDDEN>; Tue, 6 Dec 2022 17:34:42 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: quit-restore per window buffer Organization: LINKOV.NET Date: Tue, 06 Dec 2022 19:32:05 +0200 Message-ID: <86fsds8mlm.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.200; envelope-from=juri@HIDDEN; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) 1. C-x 4 d RET C-h C-t q q -- the bottom window is NOT deleted 2. C-x 4 d RET C-h C-t C-x k RET q -- the bottom window is deleted 3. C-x 4 d RET C-h C-n C-x k RET q -- the bottom window is NOT deleted The accidental difference between the last two is that the former uses `switch-to-buffer' whereas the latter uses `pop-to-buffer-same-window'. The root of the problem is that displaying a buffer in an existing window, or quitting a buffer in an existing window overwrites its window parameter `quit-restore', and thus invalidates the history of how the first window was displayed. A partial fix that solves only the first test case above is at least not to overwrite `quit-restore' on quitting other buffers in the same window: ``` diff --git a/lisp/window.el b/lisp/window.el index a11293d372a..e3b057599d5 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5275,14 +5276,14 @@ quit-restore-window (set-window-prev-buffers window (append (window-prev-buffers window) (list entry)))) ;; Reset the quit-restore parameter. - (set-window-parameter window 'quit-restore nil) ;; Select old window. ;; If the previously selected window is still alive, select it. (window--quit-restore-select-window quit-restore-2)) (t ;; Show some other buffer in WINDOW and reset the quit-restore ;; parameter. - (set-window-parameter window 'quit-restore nil) ;; Make sure that WINDOW is no more dedicated. (set-window-dedicated-p window nil) ;; Try to switch to a previous buffer. Delete the window only if ``` But the proper fix for other problems would be to replace the window parameter `quit-restore' currently shared by all buffers in the same window by a stack where every window buffer should keep own quit-restore data. There is already such a stack in `window-prev-buffers', so a possible solution would be to add quit-restore data to each buffer in window-prev-buffers. Alternatively, it would be nice to have an option that would prevent overwriting the initial value of the window parameter `quit-restore', thus `quit-restore-window' could delete the window regardless of how many buffers were displayed in that window, like it does in case of dedicated windows.
Juri Linkov <juri@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#59862
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.