aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorAlan Mackenzie2010-04-12 14:48:07 +0000
committerAlan Mackenzie2010-04-12 14:48:07 +0000
commit2811df2c90f5b2d5c3e06ff5b55eb44cbafa4250 (patch)
tree698fc7a89ac6cfc9ef836319a71c07b81524e70b /lisp/progmodes
parentdb00cb3ae4aceedce725b8b3550830f0f0dbc4a7 (diff)
downloademacs-2811df2c90f5b2d5c3e06ff5b55eb44cbafa4250.tar.gz
emacs-2811df2c90f5b2d5c3e06ff5b55eb44cbafa4250.zip
Reverse 2010-03-01T17:46:36Z!acm@muc.de "Correct buggy patch 2010-03-01T11:31:42Z!acm@muc.de to cc-engine.el.".
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-engine.el5
1 files changed, 2 insertions, 3 deletions
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."
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 ; start of macro containing (point-max) or nil. 2594 (let* ((in-macro-start ; point-max or beginning of macro containing it
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,8 +2642,7 @@ 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 (not (eq good-pos-actual-macro-start 2645 (> in-macro-start good-pos-actual-macro-start))
2646 in-macro-start)))
2647 (1+ good-pos-actual-macro-end) ; get outside the macro as 2646 (1+ good-pos-actual-macro-end) ; get outside the macro as
2648 ; marked by a `category' text property. 2647 ; marked by a `category' text property.
2649 good-pos)) 2648 good-pos))