changeset 74617:92a7d7de57cb

Fix rare bug in align.el
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Thu, 14 Dec 2006 17:58:40 +0000
parents d8af1b789e17
children 69b307896f8b
files lisp/ChangeLog lisp/align.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Dec 14 15:18:02 2006 +0000
+++ b/lisp/ChangeLog	Thu Dec 14 17:58:40 2006 +0000
@@ -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
--- a/lisp/align.el	Thu Dec 14 15:18:02 2006 +0000
+++ b/lisp/align.el	Thu Dec 14 17:58:40 2006 +0000
@@ -1075,7 +1075,7 @@
 			   (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)