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: Sat, 13 Jan 2024 20:20:38 +0200 Organization: LINKOV.NET Message-ID: <86cyu5cc0p.fsf@mail.linkov.net> References: <83frzdy6if.fsf@gnu.org> <86edexnmv8.fsf@mail.linkov.net> <83mstlvvkj.fsf@gnu.org> <34a872a9-07b2-4671-837f-f8d98b37420d@gmx.at> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21398"; 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 Sat Jan 13 19:43:18 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 1rOiyU-0005Oq-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 19:43:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOiyI-0006Nn-Hd; Sat, 13 Jan 2024 13:43:06 -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 1rOiyG-0006NH-8a for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:43:05 -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 1rOiyF-0006NE-Vm for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:43:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOiyE-0002uR-Kf for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:43: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: Sat, 13 Jan 2024 18:43: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.170517133711091 (code B ref 68235); Sat, 13 Jan 2024 18:43:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 13 Jan 2024 18:42:17 +0000 Original-Received: from localhost ([127.0.0.1]:41065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOixU-0002sp-OB for submit@debbugs.gnu.org; Sat, 13 Jan 2024 13:42:16 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:32929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOixS-0002sY-6g for 68235@debbugs.gnu.org; Sat, 13 Jan 2024 13:42:14 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 1C033E0003; Sat, 13 Jan 2024 18:42:07 +0000 (UTC) In-Reply-To: <669371d8-7c65-4c5f-99a9-0d8298808d23@gmx.at> (martin rudalics's message of "Sat, 13 Jan 2024 16:02:32 +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:278142 Archived-At: >> So we'd need a persistent window parameter >> >> (1) whose value is set to dired's file name at point in >> 'current-window-configuration' >> >> (2) and allows to restore the window's point appropriately in >> 'set-window-configuration'. > > I now think that we need two or three hooks: > > - 'pre-current-window-configuration-functions', an abnormal hook that > receives one argument - the frame whose configuration shall be > recorded. 'dired' has to set a persistent window parameter, for each > window on that frame it uses, whose value is whatever is needed to > restore the present state of the buffer in that window. Actually one hook 'pre-current-window-configuration-functions' should be sufficient. Like there is only 'isearch-push-state-function' that can be used to save a lambda that can restore the current window-start, then on going back this lambda is called and restores the previous window-start.