diff options
author | Glenn Morris <rgm@gnu.org> | 2007-09-20 02:53:58 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-09-20 02:53:58 +0000 |
commit | 3cfff67b9e5e50ead17743cbc7deac64ce549b67 (patch) | |
tree | 58e50f2caa583ac1227921923b52920d227303c1 /lisp/textmodes/tex-mode.el | |
parent | eba25e7c2caa86dbc47de305f0e20a06dde1ecb3 (diff) | |
download | emacs-3cfff67b9e5e50ead17743cbc7deac64ce549b67.tar.gz emacs-3cfff67b9e5e50ead17743cbc7deac64ce549b67.tar.bz2 emacs-3cfff67b9e5e50ead17743cbc7deac64ce549b67.zip |
Revert previous change.
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index e2e0f702547..3a7a9880d38 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1272,18 +1272,19 @@ area if a mismatch is found." 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." |