# HG changeset patch # User Alan Mackenzie # Date 1271082849 0 # Node ID ff222821fc33bdde6fba5d5f485b7176227dd08b # Parent 9b8dfcd5e0b00c99a1d2359884b0f605eb69b562 Undo change 99665 "Fix off-by-one error. Fixes bug #5747." diff -r 9b8dfcd5e0b0 -r ff222821fc33 lisp/ChangeLog --- a/lisp/ChangeLog Sat Apr 10 19:31:01 2010 +0900 +++ b/lisp/ChangeLog Mon Apr 12 14:34:09 2010 +0000 @@ -134,11 +134,6 @@ * indent.el (indent-for-tab-command): Doc fix. -2010-03-22 Alan Mackenzie - - * progmodes/cc-engine.el (c-remove-stale-state-cache): - Fix off-by-one error. Fixes bug #5747. - 2010-03-22 Juanma Barranquero * image-dired.el (image-dired-display-thumbs): Fix typo in docstring. diff -r 9b8dfcd5e0b0 -r ff222821fc33 lisp/progmodes/cc-engine.el --- a/lisp/progmodes/cc-engine.el Sat Apr 10 19:31:01 2010 +0900 +++ b/lisp/progmodes/cc-engine.el Mon Apr 12 14:34:09 2010 +0000 @@ -2624,7 +2624,7 @@ (< (point-max) c-state-old-cpp-end))) (point-max) (min (point-max) c-state-old-cpp-beg))) - (while (and c-state-cache (>= (c-state-cache-top-lparen) upper-lim)) + (while (and c-state-cache (> (c-state-cache-top-lparen) upper-lim)) (setq c-state-cache (cdr c-state-cache))) ;; If `upper-lim' is inside the last recorded brace pair, remove its ;; RBrace and indicate we'll need to search backwards for a previous