# HG changeset patch # User Alan Mackenzie # Date 1174824193 0 # Node ID af512a29da944f12bfd58277eebf6e2b73f6866d # Parent 7ed73702049d4a9bcb897f8a0432ee1f86546c70 (c-before-change): Fix BOB bug. diff -r 7ed73702049d -r af512a29da94 lisp/progmodes/cc-mode.el --- a/lisp/progmodes/cc-mode.el Sun Mar 25 12:01:03 2007 +0000 +++ b/lisp/progmodes/cc-mode.el Sun Mar 25 12:03:13 2007 +0000 @@ -509,9 +509,9 @@ type type-pos marked-id term-pos (end1 - (if (eq (get-text-property end 'face) 'font-lock-comment-face) - (previous-single-property-change end 'face) - end))) + (or (and (eq (get-text-property end 'face) 'font-lock-comment-face) + (previous-single-property-change end 'face)) + end))) (when (>= end1 beg) ; Don't hassle about changes entirely in comments. ;; Find a limit for the search for a `c-type' property (while