[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60381: [PATCH] Preserve Window Position with Proced
From: |
Eli Zaretskii |
Subject: |
bug#60381: [PATCH] Preserve Window Position with Proced |
Date: |
Wed, 28 Dec 2022 19:14:29 +0200 |
> From: Laurence Warne <laurencewarne@gmail.com>
> Date: Wed, 28 Dec 2022 15:55:20 +0000
>
> This patch addresses this by setting the window point (if applicable)
> whenever a proced buffer is updated,
> and the second issue by not updating a proced buffer if it is not displayed
> in any window.
I don't think I like the solution for the second issue, since it is a
backward-incompatible change. It is not at all obvious that not
updating a proced buffer which isn't shown in a window is TRT.
Why cannot we simply save and restore point across updates? If the
old value of point ends up in a slightly different position (because
many processes have died, for example), that is not a disaster.
Alternatively, record the process on whose line point was before the
update, and try to find the same process after update.