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)