]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix rare bug in align.el
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 14 Dec 2006 17:58:40 +0000 (17:58 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 14 Dec 2006 17:58:40 +0000 (17:58 +0000)
lisp/ChangeLog
lisp/align.el

index c758e34089ba6ea6fc5d2f26335dbdb7372fccd8..3959c07ec16e1f8e22fcf6e7580bb4435370db41 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-14  Stephen Leake  <stephen_leake@member.fsf.org> (tiny change)
+
+       * align.el (align-match-tex-pattern): Fix a rare bug which hanged
+       Emacs.
+
 2006-12-14  Richard Stallman  <rms@gnu.org>
 
        * startup.el (use-fancy-splash-screens-p): Use frame-height
index 43e5ab93c56f35af521b46448ee97b0d071f4dbb..0a0144ee65add4beb925a60c47aae4925c301cfb 100644 (file)
@@ -1075,7 +1075,7 @@ current position."
                           (eq (char-before pos) ?\\))
                 (setq count (1+ count) pos (1- pos)))
               (eq (mod count 2) 1))
-            (goto-char (match-beginning 2))))
+            (goto-char (match-beginning (if reverse 1 2)))))
     result))
 
 (defun align-new-section-p (beg end separator)