From 320f861c694fd7b25a0f477a83e90b8aaa856151 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sun, 24 Apr 2011 17:20:47 -0700 Subject: [PATCH] Use correct match group (bug#8438). --- lisp/ChangeLog | 5 +++++ lisp/progmodes/cc-engine.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use + correct match group (bug#8438). + 2011-04-22 Juanma Barranquero * 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. -- 2.11.4.GIT