bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Thu, 29 Dec 2022 08:09:01 +0200

> From: Laurence Warne <laurencewarne@gmail.com>
> Date: Wed, 28 Dec 2022 20:30:41 +0000
> Cc: 60381@debbugs.gnu.org
> 
> > Alternatively, record the process on whose line point was before the
> > update, and try to find the same process after update.
> 
> I believe this is currently what proced-update tries to do, it works as 
> expected when an update occurs and
> the buffer is displayed in the selected window (so if the process your point 
> is on moves down a row, the
> point will follow), but when the buffer is not displayed in the selected 
> window, I find the point is always reset
> to the beginning of the buffer regardless of the process which was under 
> point prior to the update.

This sounds like some kind of bug, or perhaps we have some knob to
control this behavior.  So I think you should investigate why the
difference between selected and non-select windows, and why a buffer
that is not displayed behaves like that.  When you find the reason(s),
we could discuss possible solutions.  The solutions you describe (both
of them, actually) sound like workarounds to me: we let Emacs do
whatever nonsensical thing it does, and the correct the results.  It
is better to find a way of avoiding the wrong behavior in the first
place.

Btw, the variable switch-to-buffer-preserve-window-point may have
something to do with at least some of the behaviors you see.

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]