Function: LaTeX-command-section

LaTeX-command-section is an interactive and byte-compiled function defined in tex.el.

Signature

(LaTeX-command-section &optional OVERRIDE-CONFIRM)

Documentation

Run a command on the current section.

What makes the current section is defined by LaTeX-command-section-level(var)/LaTeX-command-section-level(fun) which can be enlarged or shrunken with LaTeX-command-section-change-level.

Query the user for a command to run on the temporary file specified by the variable TeX-region. The region file will be recreated from current section.

If a prefix argument OVERRIDE-CONFIRM is given, confirmation will depend on it being positive instead of the entry in TeX-command-list.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun LaTeX-command-section (&optional override-confirm)
  "Run a command on the current section.

What makes the current section is defined by
`LaTeX-command-section-level' which can be enlarged or shrunken
with `LaTeX-command-section-change-level'.

Query the user for a command to run on the temporary file
specified by the variable `TeX-region'.  The region file will be
recreated from current section.

If a prefix argument OVERRIDE-CONFIRM is given, confirmation will
depend on it being positive instead of the entry in
`TeX-command-list'."
  (interactive "P")
  (if (eq major-mode 'LaTeX-mode)
      (let* ((bounds (LaTeX-command-section-boundaries))
             (TeX-command-region-begin (car bounds))
             (TeX-command-region-end (cdr bounds)))
        (TeX-command-region override-confirm))
    (error "LaTeX-command-section can only be run on LaTeX documents")))