From: Vinicius Jose Latorre Date: Thu, 14 Dec 2006 17:58:40 +0000 (+0000) Subject: Fix rare bug in align.el X-Git-Tag: emacs-pretest-22.0.92~125 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0aaf5bb060eb06de80dd1f96e8cecdaebb19368b;p=emacs.git Fix rare bug in align.el --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c758e34089b..3959c07ec16 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-12-14 Stephen Leake (tiny change) + + * align.el (align-match-tex-pattern): Fix a rare bug which hanged + Emacs. + 2006-12-14 Richard Stallman * startup.el (use-fancy-splash-screens-p): Use frame-height diff --git a/lisp/align.el b/lisp/align.el index 43e5ab93c56..0a0144ee65a 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -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)