Function: LaTeX-env-beginning-pos-indent

LaTeX-env-beginning-pos-indent is a byte-compiled function defined in latex.el.

Signature

(LaTeX-env-beginning-pos-indent)

Documentation

Return a cons: (POINT . INDENT) for current environment's beginning.

INDENT is the indent of the line containing POINT.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
;; This makes difference from `LaTeX-env-beginning-pos-col' when
;; something non-whitespace sits before the \begin{foo}.  (bug#65648)
(defun LaTeX-env-beginning-pos-indent ()
  "Return a cons: (POINT . INDENT) for current environment's beginning.
INDENT is the indent of the line containing POINT."
  (save-excursion
    ;; FIXME: There should be some fallback mechanism in case that the
    ;; next `backward-up' fails.  (Such fail can occur in document
    ;; with temporarily broken structure due to in-progress editing
    ;; process.)
    (LaTeX-backward-up-environment)
    (cons (point) (LaTeX-current-indentation))))