aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2010-03-01 17:46:36 +0000
committerAlan Mackenzie2010-03-01 17:46:36 +0000
commiteb2f6eeb39101947ba73dee55e38c2e3b3a07ccf (patch)
treeaa06e98a3d6a520b2f17d7852572a99cf477c86b
parent4aa2c3b2704bcdff6f0f3f93eb919772e8f3eaf5 (diff)
downloademacs-eb2f6eeb39101947ba73dee55e38c2e3b3a07ccf.tar.gz
emacs-eb2f6eeb39101947ba73dee55e38c2e3b3a07ccf.zip
Correct buggy patch 2010-03-01T11:31:42Z!acm@muc.de to cc-engine.el.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/cc-engine.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1b9871d8291..8f2c2460aad 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-03-01 Alan Mackenzie <acm@muc.de>
2
3 * progmodes/cc-engine.el (c-remove-stale-state-cache): Correct
4 previous patch.
5
12010-03-01 Kenichi Handa <handa@m17n.org> 62010-03-01 Kenichi Handa <handa@m17n.org>
2 7
3 * language/burmese.el (burmese-composable-pattern): Renamed from 8 * language/burmese.el (burmese-composable-pattern): Renamed from
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 4797cd4a8ca..f4a8c0bf46f 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -2591,7 +2591,7 @@ comment at the start of cc-engine.el for more info."
2591 (save-restriction 2591 (save-restriction
2592 (narrow-to-region 1 (point-max)) 2592 (narrow-to-region 1 (point-max))
2593 (save-excursion 2593 (save-excursion
2594 (let* ((in-macro-start ; point-max or beginning of macro containing it 2594 (let* ((in-macro-start ; start of macro containing (point-max) or nil.
2595 (save-excursion 2595 (save-excursion
2596 (goto-char (point-max)) 2596 (goto-char (point-max))
2597 (and (c-beginning-of-macro) 2597 (and (c-beginning-of-macro)
@@ -2642,7 +2642,8 @@ comment at the start of cc-engine.el for more info."
2642 ;; between `good-pos'/`good-pos-actual-macro-start' and (point-max), 2642 ;; between `good-pos'/`good-pos-actual-macro-start' and (point-max),
2643 ;; due to the interface spec to this function. 2643 ;; due to the interface spec to this function.
2644 (setq pos (if (and good-pos-actual-macro-end 2644 (setq pos (if (and good-pos-actual-macro-end
2645 (> in-macro-start good-pos-actual-macro-start)) 2645 (not (eq good-pos-actual-macro-start
2646 in-macro-start)))
2646 (1+ good-pos-actual-macro-end) ; get outside the macro as 2647 (1+ good-pos-actual-macro-end) ; get outside the macro as
2647 ; marked by a `category' text property. 2648 ; marked by a `category' text property.
2648 good-pos)) 2649 good-pos))