summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2010-04-12 14:34:09 +0000
committerAlan Mackenzie <acm@muc.de>2010-04-12 14:34:09 +0000
commitdb00cb3ae4aceedce725b8b3550830f0f0dbc4a7 (patch)
tree94391c530aa76e33660dc3b530887421bb2fcf80
parent658b9b9347fdb9cdf5763990c22e63a0d617c40e (diff)
downloademacs-db00cb3ae4aceedce725b8b3550830f0f0dbc4a7.tar.gz
Undo 2010-03-15T01:38:28Z!yamaoka@jpl.org "Fix off-by-one error. Fixes bug #5747."
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/cc-engine.el2
2 files changed, 1 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fe1e4b25878..c74aef90b3c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -134,11 +134,6 @@
* indent.el (indent-for-tab-command): Doc fix.
-2010-03-22 Alan Mackenzie <acm@muc.de>
-
- * progmodes/cc-engine.el (c-remove-stale-state-cache):
- Fix off-by-one error. Fixes bug #5747.
-
2010-03-22 Juanma Barranquero <lekktu@gmail.com>
* image-dired.el (image-dired-display-thumbs): Fix typo in docstring.
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 2d28d003fd5..f4a8c0bf46f 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -2624,7 +2624,7 @@ comment at the start of cc-engine.el for more info."
(< (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