|
From: | Juri Linkov |
Subject: | bug#68235: 29.1.90; Switching tabs stops following process output in selected window |
Date: | Tue, 09 Jan 2024 19:25:14 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |