]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct buggy patch 2010-03-01T11:31:42Z!acm@muc.de to cc-engine.el.
authorAlan Mackenzie <acm@muc.de>
Mon, 1 Mar 2010 17:46:36 +0000 (17:46 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 1 Mar 2010 17:46:36 +0000 (17:46 +0000)
lisp/ChangeLog
lisp/progmodes/cc-engine.el

index 1b9871d8291cb6c3678b3a31c947c9b0e51a79ea..8f2c2460aad59fdf0f50561d567031df922ae0d1 100644 (file)
@@ -1,3 +1,8 @@
+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): Renamed from
index 4797cd4a8cab8725dbd9e21103a6e7de72b7f668..f4a8c0bf46fbd9de568564d3513b5be4e4c4a181 100644 (file)
@@ -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   ; point-max or beginning of macro containing it
+      (let* ((in-macro-start   ; start of macro containing (point-max) or nil.
              (save-excursion
                (goto-char (point-max))
                (and (c-beginning-of-macro)
@@ -2642,7 +2642,8 @@ 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
-                          (> in-macro-start good-pos-actual-macro-start))
+                          (not (eq good-pos-actual-macro-start
+                                   in-macro-start)))
                      (1+ good-pos-actual-macro-end) ; get outside the macro as
                                        ; marked by a `category' text property.
                    good-pos))