[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 19:37:21 +0200 |
[Why private email?]
> From: Laurence Warne <laurencewarne@gmail.com>
> Date: Thu, 29 Dec 2022 17:07:42 +0000
>
> > Why cannot proced update point when the window is not the selected
> > one?
>
> Say window A is displaying a proced buffer and is not selected. Unless my
> understanding from
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Point.html
> is wrong, whenever
> proced-update uses goto-char, it would not update the window point in window
> A, but erase-buffer would, by
> setting the window point of A to the beginning of the buffer.
You need to use set-window-point in that case, yes. But if the buffer
is not displayed, there should be no problem, and at most you will
have to set the local value of switch-to-buffer-preserve-window-point
to nil in proced buffers.