* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
authorDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:31:41 +0000 (17:31 -0700)
committerDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:31:41 +0000 (17:31 -0700)
correct match group (bug#8438).

lisp/ChangeLog
lisp/progmodes/cc-engine.el

index 4d4c938..0a63e6d 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-24  Daniel Colascione <dan.colascione@gmail.com>
+
+       * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
+       correct match group (bug#8438).
+
 2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
 
        * emacs-lisp/package.el (package-built-in-p): Fix typo.
index 5ef1230..0eec54f 100644 (file)
@@ -6475,7 +6475,7 @@ comment at the start of cc-engine.el for more info."
       ;; `c-font-lock-declarators'.)
       (while (and (looking-at c-type-decl-prefix-key)
                  (if (and (c-major-mode-is 'c++-mode)
-                          (match-beginning 2))
+                          (match-beginning 3))
                      ;; If the second submatch matches in C++ then
                      ;; we're looking at an identifier that's a
                      ;; prefix only if it specifies a member pointer.