]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert previous change.
authorGlenn Morris <rgm@gnu.org>
Thu, 20 Sep 2007 02:53:58 +0000 (02:53 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 20 Sep 2007 02:53:58 +0000 (02:53 +0000)
lisp/ChangeLog
lisp/textmodes/tex-mode.el

index c989f666aa5baeb094b9f9c9863a40f67d9db857..f91b0156cfe90acd6a70fd6fe442fc754493787b 100644 (file)
@@ -68,7 +68,7 @@
        error if the port associated with a service string can't be found.
 
        * textmodes/tex-mode.el (tex-terminate-paragraph):
-       Use backward-paragraph.  Leave point at the site of any mismatch.
+       Use backward-paragraph.
 
 2007-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index e2e0f7025473b2bcb83e9cbcbc27e3aa834f9e6f..3a7a9880d388a771992a4e9f8a3146ea546f8b6c 100644 (file)
@@ -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."