[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el,v

From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el,v
Date: Thu, 20 Sep 2007 02:53:40 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       07/09/20 02:53:39

Index: tex-mode.el
RCS file: /sources/emacs/emacs/lisp/textmodes/tex-mode.el,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -b -r1.198 -r1.199
--- tex-mode.el 19 Sep 2007 07:24:45 -0000      1.198
+++ tex-mode.el 20 Sep 2007 02:53:39 -0000      1.199
@@ -1272,8 +1272,8 @@
 Check for mismatched braces or $s in paragraph being terminated.
 A prefix arg inhibits the checking."
   (interactive "*P")
-  (insert "\n\n")
   (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
@@ -1282,8 +1282,9 @@
-       (point))
-      (message "Paragraph being closed appears to contain a mismatch")))
+        (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."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]