]> git.eshelyaron.com Git - emacs.git/commitdiff
Use correct match group (bug#8438).
authorDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:20:47 +0000 (17:20 -0700)
committerDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:20:47 +0000 (17:20 -0700)
lisp/ChangeLog
lisp/progmodes/cc-engine.el

index 8ff0625068d4117708838662203892b8ad5cb360..898b281ed2ee6134d8d8c8e605f5b7fda71709d1 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-22  Juanma Barranquero  <lekktu@gmail.com>
 
        * buff-menu.el (Buffer-menu--buffers): Fix typo in docstring (bug#8535).
index f96cd1b5c93f1c5569c7331e5563db0afc40fbca..a53dd61c81e1b6fdbc8b092888ec3c19cc953c36 100644 (file)
@@ -5439,7 +5439,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.