GNU bug report logs - #7405
cc-mode typo between cc-engine and cc-fonts

Previous Next

Packages: cc-mode, emacs;

Reported by: Daniel Colascione <dan.colascione <at> gmail.com>

Date: Mon, 15 Nov 2010 04:07:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Colascione <dan.colascione <at> gmail.com>
To: 7405 <at> debbugs.gnu.org
Subject: bug#7405: cc-mode typo between cc-engine and cc-fonts
Date: Sun, 14 Nov 2010 20:11:27 -0800
[Message part 1 (text/plain, inline)]
Latest trunk.

In cc-fonts.el,

  ;; Skip over type decl prefix operators, one for each iteration
  ;; of the while.  These are, e.g. "*" in "int *foo" or "(" and
  ;; "*" in "int (*foo) (void)" (Note similar code in
  ;; `c-forward-decl-or-cast-1'.)
  (while (and (looking-at c-type-decl-prefix-key)
     (if (and (c-major-mode-is 'c++-mode)
	(match-beginning 3))
	;; If the third submatch matches in C++ then
                  ^^^^^^^^^^^^^^

	;; we're looking at an identifier that's a
	;; prefix only if it specifies a member pointer.

In cc-engine.el,

      ;; Skip over type decl prefix operators.  (Note similar code in
      ;; `c-font-lock-declarators'.)
      (while (and (looking-at c-type-decl-prefix-key)
		  (if (and (c-major-mode-is 'c++-mode)
			   (match-beginning 2))
		      ;; 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.
		      (when (setq got-identifier (c-forward-name))


So which is it?

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 9 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.