Function: TeX-recenter-output-buffer

TeX-recenter-output-buffer is an interactive and byte-compiled function defined in tex.el.

Signature

(TeX-recenter-output-buffer LINE)

Documentation

Redisplay buffer of TeX job output so that most recent output can be seen.

The last line of the buffer is displayed on line LINE of the window, or at bottom if LINE is nil.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-recenter-output-buffer (line)
  "Redisplay buffer of TeX job output so that most recent output can be seen.
The last line of the buffer is displayed on line LINE of the window, or
at bottom if LINE is nil."
  (interactive "P")
  (let ((buffer (TeX-active-buffer)))
    (if buffer
        (let ((old-buffer (current-buffer)))
          (TeX-pop-to-buffer buffer t t)
          (bury-buffer buffer)
          (goto-char (point-max))
          (recenter (if line
                        (prefix-numeric-value line)
                      (/ (window-height) 2)))
          (TeX-pop-to-buffer old-buffer nil t))
      (message "No process for this document."))))