Function: recenter-other-window
recenter-other-window is an interactive and byte-compiled function
defined in window.el.gz.
Signature
(recenter-other-window &optional ARG)
Documentation
Call recenter-top-bottom in the other window.
A prefix argument is handled like recenter:
With numeric prefix ARG, move current line to window-line ARG.
With plain C-u (universal-argument), move current line to window center.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun recenter-other-window (&optional arg)
"Call `recenter-top-bottom' in the other window.
A prefix argument is handled like `recenter':
With numeric prefix ARG, move current line to window-line ARG.
With plain \\[universal-argument], move current line to window center."
(interactive "P")
(with-selected-window (other-window-for-scrolling)
(recenter-top-bottom arg)
(pulse-momentary-highlight-one-line (point))))