From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68235: 29.1.90; Switching tabs stops following process output in selected window Date: Fri, 16 Feb 2024 10:40:02 +0100 Message-ID: <021bb8c2-3f2d-4746-8f04-49f43cf57d16@gmx.at> References: <86h6jlqh2i.fsf@mail.linkov.net> <5e438b04-6fb7-4114-a5a8-61db9809b297@gmx.at> <86cyu7m4kc.fsf@mail.linkov.net> <2f80855c-3bf9-4973-a484-059cdef3b8c7@gmx.at> <669371d8-7c65-4c5f-99a9-0d8298808d23@gmx.at> <86cyu5cc0p.fsf@mail.linkov.net> <868r4reoh3.fsf@mail.linkov.net> <0634c46f-db93-4492-be69-5ac6ca0102a8@gmx.at> <865xzuvdgu.fsf@mail.linkov.net> <86a5p5qv61.fsf@mail.linkov.net> <86edeg2ige.fsf@mail.linkov.net> <21dcf921-acc4-4f94-b383-8ad6d0a57c59@gmx.at> <86v87qpow0.fsf@mail.linkov.net> <4bc98faf-5ebe-4c22-8c9f-04755785fde5@gmx.at> <86wmrjl8m3.fsf@mail.linkov.net> <39fe71c5-db40-49d1-b22b-37b52ed13865@gmx.at> <86jzn6yzae.fsf@mail.linkov.net> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38295"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 68235@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 16 10:41:03 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rauiM-0009ld-Qp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Feb 2024 10:41:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raui6-00077H-6V; Fri, 16 Feb 2024 04:40:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raui3-00076p-Te for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 04:40:43 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raui3-0001if-Lb for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 04:40:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rauiM-0003K1-GA for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 04:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2024 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68235 X-GNU-PR-Package: emacs Original-Received: via spool by 68235-submit@debbugs.gnu.org id=B68235.170807643212715 (code B ref 68235); Fri, 16 Feb 2024 09:41:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 16 Feb 2024 09:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:57869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rauhr-0003Iy-O3 for submit@debbugs.gnu.org; Fri, 16 Feb 2024 04:40:32 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:48953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rauho-0003Ig-IR for 68235@debbugs.gnu.org; Fri, 16 Feb 2024 04:40:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1708076402; x=1708681202; i=rudalics@gmx.at; bh=n60T9UnQTyEJFpYWAAmlAeXFxHjE7zy1dqFzew3b9ac=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=ctqT/K5xgOZnp3G/trrUdRIE/Ysi0uwg3aO3J7PqppRr1gTnJkbIjfCdhk+3Ee1h 6krR4tSr7b/qgSwev2m1z3iZwn9QnXQbbtYhV+0m9MIO3ScCWSi+pZS+HBTS3x+hz Jy0Socu5Fmx3vsu+uyw1MpSj4sZCC+wmc2koDmr93FKHj8ag3xnbth4243WDuOs/1 BBDO451ie5fNc02YST8lOO3nn6cZ9KvL8Y4zBEyRwhCgB793UA5Mj6Wq4QNscqUGU GaPZTSx+IUV0hvzcQzVQB1sE0xFFTmyt3gdRh88OoA+HbS1B+L/cSl4SCnq1SZSpH 4ZBoWc943Ze7OFuZOw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([46.125.249.69]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MdNcG-1r1qzq1zEm-00ZRh3; Fri, 16 Feb 2024 10:40:02 +0100 Content-Language: en-US In-Reply-To: <86jzn6yzae.fsf@mail.linkov.net> X-Provags-ID: V03:K1:FfjXInrqzDG2LPx4faMFTJyQJk4UWNE3tmNGyvNbXzWaBUA8pyf swvBihR1TpvFtdvDPyHcHqczAY2h0HsxSvHeq4G689bcR+yzPoiRSjqQaXjJixLIw7lfyL+ uCISxPu17a6lRGuv4veCn3K4MpLt/BqIIK+NVzj6NKHkwbBf8wkq1oFO/E2blPyDjfi0SgG Oz2hFNP/NryiCvqVA5nBQ== UI-OutboundReport: notjunk:1;M01:P0:cGwBKStmbuQ=;1GLjbNnj2iFQisfszjHiO81hPMX G2XA5UIPWrgiNVE5ZUrIfM0LYIk09fZa7VzR8wFE6GuEy/5kXk9kJLBG9eAVPyDtAPhnygiIM BgVV0OfOlpQkxRF3okT/eZ1PQYBG3le/BAZQyRB+MGEhAIHJzoIvvFcq2AwBpvQr+Df4s/KF/ DP0lgtXadYa/ntTCc8T7GDnQd6Yl3S6jxV2tpq6WGVSCa/xM0ejD1LwccrvnjvabUIz0LgjQy nOFwz2Ei7cp/IXDEjYlt/3+Vi1JhH6J8UXNcoR2g48WyNk9ciXsoClxHGqtX9kugU+oqsUbdd 5QSxzNs9cuLFxTdantxXZwQUlFwGmbk+PJHC8+Z2E2v2AKUz8TmwL3YPOz3sxN9ntEEKGKUMN /Cr06bJKmljPJeKRIHok8PMPsJNvPHdjrdTwTgK+fr3lvH4rrNwAaiQToVa3H8+a7gP+/dGSp jhjMOxE1eWun/CNYfRSXUwRJ27Lpgliz6vcvsWUBRP4YS2ji2S5hC2Die/ijlE/me5xV/wBQI s17qU3tvM/Pq1hWFaeY/xMmplYDTuXwbK5TT79+yK0F+DV+nWhvbdm+EvaVD3h6/Uex4BL7q7 9x6PjtmupFiGHAwMRkQHFPhZblboPaMEEN3PfKTzvZZjG+cMJgWddaLGQ2QPPktpQXtXgYssy HpIDLoJeKkhYNwRVTr3fTJ1lAC1c/C+mlfr6wE2/i5LJacm1SYr/vJEWwQq705XkWcc2ZYFw/ 7hAgr0ahbYEqzqrtOCF1kKtVY8+BWpglRLvKQFsI/7JIPcXKo9ygfxsNbXaiPKmd3aLg9es4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280096 Archived-At: > One problem is that whether to run the hook is defined by the fourth argument. > This means that it a user needs to use the hook, there is no way to change > the fourth argument of the existing function calls in core commands. > > Maybe better to keep windows when the hook is not empty? > I.e. something like this for 'window--state-put-2': > > (when window-state-put-keep-window-functions > ... > (push (list window old-buffer-or-name start-pos point-pos) > window-state-put-kept-windows)) You mean to do away with the KEEP-WINDOWS argument and keep windows iff `window-state-put-keep-window-functions' is non-nil? This would be up to you to decide. Only some practice can tell what's better here. >> I added a new hook called 'window-state-put-keep-window-functions' with >> the same arguments as 'post-set-window-configuration-functions'. Maybe >> people wanted to keep them apart. If you think the hook should be also >> run when there are no "kept" windows, we can do that as well. > > Running the hook with an empty list of windows makes sense as well. For some time we don't run hooks any more when windows and their buffers change but rather wait until redisplay detects that some change occurred. `window-state-put-keep-window-functions' already opens the backdoor to the previous behavior so I'm not sure about opening it even further. martin