From 05842630f9a2b95a35003ee41aeb10b6df39b1e4 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sun, 24 Apr 2011 17:31:41 -0700 Subject: [PATCH] * progmodes/cc-engine.el (c-forward-decl-or-cast-1): 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 4d4c93841e..0a63e6d5de 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-24 Chong Yidong * emacs-lisp/package.el (package-built-in-p): Fix typo. diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 5ef1230019..0eec54fab6 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -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. -- 2.20.1