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: Tue, 09 Jan 2024 19:25:14 +0200 Organization: LINKOV.NET Message-ID: <868r4ymn7x.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5763"; 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 Tue Jan 09 18:32:11 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 1rNFxS-0001N9-W2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jan 2024 18:32:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNFxI-0007VJ-HT; Tue, 09 Jan 2024 12:32:00 -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 1rNFxE-0007Ua-3z for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 12:31:57 -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 1rNFxD-0002sQ-S9 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 12:31:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNFxK-000767-DC for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 12:32: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: Tue, 09 Jan 2024 17:32: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.170482146825434 (code B ref 68235); Tue, 09 Jan 2024 17:32:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 9 Jan 2024 17:31:08 +0000 Original-Received: from localhost ([127.0.0.1]:40861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNFwS-0006bW-5C for submit@debbugs.gnu.org; Tue, 09 Jan 2024 12:31:08 -0500 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:44437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNFwK-0006HC-8J for 68235@debbugs.gnu.org; Tue, 09 Jan 2024 12:31:00 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 91F7E60006; Tue, 9 Jan 2024 17:30:45 +0000 (UTC) In-Reply-To: <86v885je23.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 07 Jan 2024 18:49:36 +0200") 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:277639 Archived-At: > The dired revert is a separate problem unrelated to this bug report. > But still we need to remove this ad-hoc condition: > > (when (and (markerp wc-point) > (marker-buffer wc-point) > ;; FIXME: After dired-revert, marker relocates to 1. > ;; window-configuration restores point to global point > ;; in this dired buffer, not to its window point, > ;; but this is slightly better than 1. > ;; Maybe better to save dired-filename in each window? > (not (eq 1 (marker-position wc-point)))) > (goto-char wc-point)) > > Checking for (not (eq 1 (marker-position wc-point))) > is the wrong thing to do because it also affects non-dired buffers. > > But I have no idea how to handle dired revert that moves the marker > to the top of the buffer. Adding special-handling for dired here > also doesn't look right. > > Maybe it's possible to mark the marker as invalidated after reverting? > Then could check for the invalidated status here. Actually the problem is somewhere else because after dired revert point is relocated to the top of the buffer even in non-selected windows in window-configuration. So trying to manually preserve point in the selected window is not of much help. Therefore I just removed the special-handling of dired revert in master.