Function: erc--scrolltobottom-confirm

erc--scrolltobottom-confirm is a byte-compiled function defined in erc-goodies.el.gz.

Signature

(erc--scrolltobottom-confirm &optional SCROLL-TO)

Documentation

Like erc-scroll-to-bottom, but use window-point.

Position current line (with recenter) SCROLL-TO lines below window's top. Return nil if point is not in prompt area or if prompt isn't ready.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(defun erc--scrolltobottom-confirm (&optional scroll-to)
  "Like `erc-scroll-to-bottom', but use `window-point'.
Position current line (with `recenter') SCROLL-TO lines below
window's top.  Return nil if point is not in prompt area or if
prompt isn't ready."
  (when erc-insert-marker
    (let ((resize-mini-windows nil))
      (save-restriction
        (widen)
        (when (>= (window-point) erc-input-marker)
          (save-excursion
            (goto-char (point-max))
            (recenter (+ (or scroll-to 0) (or erc-input-line-position -1)))
            t))))))