From 0aaf5bb060eb06de80dd1f96e8cecdaebb19368b Mon Sep 17 00:00:00 2001 From: Vinicius Jose Latorre Date: Thu, 14 Dec 2006 17:58:40 +0000 Subject: [PATCH] Fix rare bug in align.el --- lisp/ChangeLog | 5 +++++ lisp/align.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5