diff options
author | Alan Mackenzie <acm@muc.de> | 2010-04-12 14:48:07 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2010-04-12 14:48:07 +0000 |
commit | 2811df2c90f5b2d5c3e06ff5b55eb44cbafa4250 (patch) | |
tree | 698fc7a89ac6cfc9ef836319a71c07b81524e70b | |
parent | db00cb3ae4aceedce725b8b3550830f0f0dbc4a7 (diff) | |
download | emacs-2811df2c90f5b2d5c3e06ff5b55eb44cbafa4250.tar.gz |
Reverse 2010-03-01T17:46:36Z!acm@muc.de "Correct buggy patch 2010-03-01T11:31:42Z!acm@muc.de to cc-engine.el.".
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/progmodes/cc-engine.el | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c74aef90b3c..08483c3a61d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -282,11 +282,6 @@ * calendar/cal-hebrew.el (holiday-hebrew-passover): Fix date of Yom HaAtzma'ut when it falls on a Monday (rule changed in 2004). -2010-03-01 Alan Mackenzie <acm@muc.de> - - * progmodes/cc-engine.el (c-remove-stale-state-cache): - Correct previous patch. - 2010-03-01 Kenichi Handa <handa@m17n.org> * language/burmese.el (burmese-composable-pattern): Rename from diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index f4a8c0bf46f..4797cd4a8ca 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." (save-restriction (narrow-to-region 1 (point-max)) (save-excursion - (let* ((in-macro-start ; start of macro containing (point-max) or nil. + (let* ((in-macro-start ; point-max or beginning of macro containing it (save-excursion (goto-char (point-max)) (and (c-beginning-of-macro) @@ -2642,8 +2642,7 @@ comment at the start of cc-engine.el for more info." ;; between `good-pos'/`good-pos-actual-macro-start' and (point-max), ;; due to the interface spec to this function. (setq pos (if (and good-pos-actual-macro-end - (not (eq good-pos-actual-macro-start - in-macro-start))) + (> in-macro-start good-pos-actual-macro-start)) (1+ good-pos-actual-macro-end) ; get outside the macro as ; marked by a `category' text property. good-pos)) |