Function: tex-terminate-paragraph
tex-terminate-paragraph is an interactive and byte-compiled function
defined in tex-mode.el.gz.
Signature
(tex-terminate-paragraph INHIBIT-VALIDATION)
Documentation
Insert two newlines, breaking a paragraph for TeX.
Check for mismatched braces or $s in paragraph being terminated. A prefix arg inhibits the checking.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-terminate-paragraph (inhibit-validation)
"Insert two newlines, breaking a paragraph for TeX.
Check for mismatched braces or $s in paragraph being terminated.
A prefix arg inhibits the checking."
(interactive "*P")
(or inhibit-validation
(save-excursion
;; For the purposes of this, a "paragraph" is a block of text
;; wherein all the brackets etc are expected to be balanced. It
;; may start after a blank line (ie a "proper" paragraph), or
;; a begin{} or end{} block, etc.
(tex-validate-region
(save-excursion
(backward-paragraph)
(point))
(point)))
(message "Paragraph being closed appears to contain a mismatch"))
(insert "\n\n"))