summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLaurence Warne <laurencewarne@gmail.com>2022-12-22 17:16:08 +0000
committerEli Zaretskii <eliz@gnu.org>2023-01-14 10:36:15 +0200
commitf0ac01812f93ea8bea95e37415987e8d7a82fb1c (patch)
tree886de06bd731871393aeffe34e7e98c8f27dcdc6 /lisp/emacs-lisp
parent4514b7ecc6fdf8d2642ea6ff84f0af3868a3a658 (diff)
downloademacs-f0ac01812f93ea8bea95e37415987e8d7a82fb1c.tar.gz
emacs-f0ac01812f93ea8bea95e37415987e8d7a82fb1c.tar.bz2
emacs-f0ac01812f93ea8bea95e37415987e8d7a82fb1c.zip
Preserve the window position with proced (bug#60381)
Preserve the window position for windows which display a proced buffer, but are not the selected window when a proced buffer is updated. Previously, the window position would be set to the start of the buffer when a proced buffer was updated and it was not displayed in the selected window. Similarly, preserve the position in proced buffers which are not displayed in any window by setting 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * lisp/proced.el (proced-auto-update-timer): Only update a given proced buffer if it is displayed in a window. (proced-update): Set the window position if the proced buffer is displayed in a window. (proced--position-info, proced--determine-pos): New Functions. (proced-mode): Set 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * test/lisp/proced-tests.el (proced-update-preserves-pid-at-point-test): New test.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions