emacs-diffs
[Top][All Lists]
Advanced

[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: Wed, 19 Sep 2007 07:21:25 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       07/09/19 07:21:25

Index: tex-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/tex-mode.el,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -b -r1.196 -r1.197
--- tex-mode.el 17 Sep 2007 22:22:39 -0000      1.196
+++ tex-mode.el 19 Sep 2007 07:21:24 -0000      1.197
@@ -1188,6 +1188,7 @@
          (let ((end (point))
                prev-end)
            ;; Scan the previous paragraph for invalidities.
+           ;; FIXME this should be using something like backward-paragraph.
            (if (search-backward "\n\n" nil t)
                (progn
                  (setq prev-end (point))
@@ -1273,9 +1274,13 @@
   (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
-          (search-backward "\n\n" nil 'move)
+          (backward-paragraph)
           (point))
         (point)))
       (message "Paragraph being closed appears to contain a mismatch"))




reply via email to

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