# HG changeset patch # User Glenn Morris # Date 1190256819 0 # Node ID 6740c5c3ca65251a6284dc66c530eb02bc3f586d # Parent 55fc225791520c6363c0e1bd28d93acc01fb55dc Revert previous change. diff -r 55fc22579152 -r 6740c5c3ca65 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Thu Sep 20 02:46:49 2007 +0000 +++ b/lisp/textmodes/tex-mode.el Thu Sep 20 02:53:39 2007 +0000 @@ -1272,18 +1272,19 @@ Check for mismatched braces or $s in paragraph being terminated. A prefix arg inhibits the checking." (interactive "*P") - (insert "\n\n") (or inhibit-validation - ;; 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"))) + (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")) (define-skeleton tex-insert-braces "Make a pair of braces and be poised to type inside of them."