Function: erc-status-sidebar-recenter
erc-status-sidebar-recenter is an interactive and byte-compiled
function defined in erc-status-sidebar.el.gz.
Signature
(erc-status-sidebar-recenter ARG)
Documentation
Recenter the status sidebar.
Expect erc-status-sidebar-highlight-active-buffer to be non-nil
and to be invoked in a buffer matching the line currently
highlighted.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-status-sidebar.el.gz
(defun erc-status-sidebar-recenter (arg)
"Recenter the status sidebar.
Expect `erc-status-sidebar-highlight-active-buffer' to be non-nil
and to be invoked in a buffer matching the line currently
highlighted."
(interactive "P")
(let* ((buf (erc-status-sidebar-get-buffer))
(win (get-buffer-window buf)))
(with-current-buffer buf
(when (and erc-status-sidebar--active-marker
(marker-position erc-status-sidebar--active-marker))
(with-selected-window win
(goto-char erc-status-sidebar--active-marker)
(recenter arg t))))))