Function: TeX-pop-to-buffer

TeX-pop-to-buffer is a byte-compiled function defined in tex.el.

Signature

(TeX-pop-to-buffer BUFFER &optional OTHER-WINDOW NORECORD)

Documentation

Compatibility wrapper for pop-to-buffer.

Select buffer BUFFER in some window, preferably a different one. BUFFER may be a buffer, a string (a buffer name), or nil. If BUFFER is a string which is not the name of an existing buffer, then this function creates a buffer with that name. If BUFFER is nil, then it chooses some other buffer. If pop-up-windows is non-nil, windows can be split to do this. If optional second arg OTHER-WINDOW is non-nil, insist on finding another window even if BUFFER is already visible in the selected window, and ignore same-window-regexps and same-window-buffer-names. This function returns the buffer it switched to. This uses the function display-buffer as a subroutine; see the documentation of display-buffer for additional customization information.

Optional third arg NORECORD non-nil means do not put this buffer at the front of the list of recently selected ones.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-pop-to-buffer (buffer &optional other-window norecord)
  "Compatibility wrapper for `pop-to-buffer'.

Select buffer BUFFER in some window, preferably a different one.
BUFFER may be a buffer, a string (a buffer name), or nil.
If BUFFER is a string which is not the name of an existing buffer,
then this function creates a buffer with that name.
If BUFFER is nil, then it chooses some other buffer.
If `pop-up-windows' is non-nil, windows can be split to do this.
If optional second arg OTHER-WINDOW is non-nil, insist on finding another
window even if BUFFER is already visible in the selected window,
and ignore `same-window-regexps' and `same-window-buffer-names'.
This function returns the buffer it switched to.
This uses the function `display-buffer' as a subroutine; see the documentation
of `display-buffer' for additional customization information.

Optional third arg NORECORD non-nil means do not put this buffer
at the front of the list of recently selected ones."
  (pop-to-buffer buffer other-window (and norecord (not TeX-record-buffer))))