summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDaniel Colascione <dan.colascione@gmail.com>2011-04-24 17:20:47 -0700
committerDaniel Colascione <dan.colascione@gmail.com>2011-04-24 17:20:47 -0700
commit320f861c694fd7b25a0f477a83e90b8aaa856151 (patch)
treea57e5452f8272e8530a079dc4665b3cd6d753037 /lisp
parentbe71f8100a71a5b896ef05c32f51a09a3d9e3993 (diff)
Use correct match group (bug#8438).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/cc-engine.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8ff0625068d..898b281ed2e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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).
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index f96cd1b5c93..a53dd61c81e 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -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.