* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use

correct match group (bug#8438).
This commit is contained in:
Daniel Colascione 2011-04-24 17:31:41 -07:00
parent a3af29290e
commit 05842630f9
2 changed files with 6 additions and 1 deletions

View 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.

View 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.