From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#68235: 29.1.90; Switching tabs stops following process output in selected window Date: Thu, 18 Jan 2024 18:50:07 +0200 Organization: LINKOV.NET Message-ID: <86v87qpow0.fsf@mail.linkov.net> References: <867ckmxto2.fsf@mail.linkov.net> <92085305-caad-4bb6-ac55-a81415404a26@gmx.at> <86v885je23.fsf@mail.linkov.net> <868r4ymn7x.fsf@mail.linkov.net> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: daniel.c.mccarthy@gmail.com, Eli Zaretskii , 68235@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 18 17:52:27 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 1rQVcx-000AM4-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Jan 2024 17:52:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQVcZ-0005U9-Tb; Thu, 18 Jan 2024 11:52:04 -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 1rQVcX-0005TI-Bm for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2024 11:52:01 -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 1rQVcW-0001Lp-W8 for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2024 11:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQVcY-0001kk-LZ for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2024 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jan 2024 16:52: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.17055966716636 (code B ref 68235); Thu, 18 Jan 2024 16:52:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 18 Jan 2024 16:51:11 +0000 Original-Received: from localhost ([127.0.0.1]:56577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQVbj-0001ix-Gk for submit@debbugs.gnu.org; Thu, 18 Jan 2024 11:51:11 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:36055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQVbf-0001i7-El for 68235@debbugs.gnu.org; Thu, 18 Jan 2024 11:51:09 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 668661BF209; Thu, 18 Jan 2024 16:50:58 +0000 (UTC) In-Reply-To: <21dcf921-acc4-4f94-b383-8ad6d0a57c59@gmx.at> (martin rudalics's message of "Thu, 18 Jan 2024 11:47:52 +0100") X-GND-Sasl: juri@linkov.net 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:278437 Archived-At: > What we can safely do is the following: Give 'set-window-configuration' > a new argument, say 'keep-dead-buffer-windows'. If non-nil, > 'set-window-configuration' does not delete dead buffer windows but shows > *scratch* in them. 'post-set-window-configuration-functions' would then > pass two arguments: the respective frame and a list of four entries for > each dead buffer window it found: The window, the buffer it previously > showed, its window point and its window start position. A function run > by that hook would then be able to replace *scratch* with, for example, > a new buffer visiting the file the previously shown buffer visited and > also restore point and window start of that window. This looks promising. One thing I don't understand is how to get the previously visited file name from this list of four entries?