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

Previous Next

Packages: emacs, cc-mode;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7405 in the body.
You can then email your comments to 7405 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7405; Package emacs. (Mon, 15 Nov 2010 04:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Colascione <dan.colascione <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Nov 2010 04:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dan.colascione <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#7405; Package emacs,cc-mode. (Tue, 16 Nov 2010 03:24:01 GMT) Full text and rfc822 format available.

Message #8 received at 7405 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Daniel Colascione <dan.colascione <at> gmail.com>
Cc: 7405 <at> debbugs.gnu.org
Subject: Re: bug#7405: cc-mode typo between cc-engine and cc-fonts
Date: Mon, 15 Nov 2010 22:28:39 -0500
Daniel Colascione wrote:

> So which is it?

Looks like the cc-fonts one (in c-font-lock-declarators) was changed
2010-10-09, as part of r101882. It does not seem to be mentioned in
the ChangeLog.




Merged 7405 7579. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 07 Dec 2010 18:12:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 7579 <at> debbugs.gnu.org and Daniel Colascione <dan.colascione <at> gmail.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2012 08:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 May 2012 11:24:03 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Alan Mackenzie <acm <at> muc.de> to control <at> debbugs.gnu.org. (Wed, 03 Feb 2016 20:23:02 GMT) Full text and rfc822 format available.

Disconnected #7579 from all other report(s). Request was from Alan Mackenzie <acm <at> muc.de> to control <at> debbugs.gnu.org. (Wed, 03 Feb 2016 20:23:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 03 Mar 2016 12:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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