From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gauthier =?UTF-8?Q?=C3=96stervall?= Newsgroups: gmane.emacs.bugs Subject: bug#15207: 24.2; C Highlight colors around CV-modifiers Date: Wed, 25 Sep 2013 17:42:21 +0200 Message-ID: References: <20130901091027.GA2959@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1380123807 19172 80.91.229.3 (25 Sep 2013 15:43:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2013 15:43:27 +0000 (UTC) Cc: 15207@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 25 17:43:29 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VOrFL-000133-PU for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 17:43:23 +0200 Original-Received: from localhost ([::1]:53370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOrFL-0003ea-El for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 11:43:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOrFC-0003dz-Mt for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 11:43:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOrF6-0003KZ-Ve for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 11:43:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOrF0-0003JQ-EK; Wed, 25 Sep 2013 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VOrEz-00035G-Vi; Wed, 25 Sep 2013 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gauthier =?UTF-8?Q?=C3=96stervall?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 25 Sep 2013 15:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15207 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 15207-submit@debbugs.gnu.org id=B15207.138012376611832 (code B ref 15207); Wed, 25 Sep 2013 15:43:01 +0000 Original-Received: (at 15207) by debbugs.gnu.org; 25 Sep 2013 15:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:35436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOrEi-00034j-Vb for submit@debbugs.gnu.org; Wed, 25 Sep 2013 11:42:45 -0400 Original-Received: from mail-wg0-f48.google.com ([74.125.82.48]:46966) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOrEg-00034b-S6 for 15207@debbugs.gnu.org; Wed, 25 Sep 2013 11:42:43 -0400 Original-Received: by mail-wg0-f48.google.com with SMTP id n12so6210368wgh.3 for <15207@debbugs.gnu.org>; Wed, 25 Sep 2013 08:42:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=yO8/P/gaJ1QTABtocfUgYUOs+IhTILWGvxe8HA/7f58=; b=Sqs6oW5Zd9xepOAQfrFin2XTwZwLUblP4gGPrksU0H9eVG6Swvk+9unjtNSFyjOipI jev2QuZ4epeG9SOZhaDyLxApBtTaAwbfMw80jlAnGhskivmPG/spcFxkN+RnJwAJfkgO VU9pen2Jm6crkr7SuhUixQd86ujDbtFLfeCdrZCPXELyXcWnrRxb9FhibQiHTopVC9Z9 hYy3eMTOI4+2wVjm5sFkx16bLPWV78W+lmiSBZ+n3Ilg3TE/GWtC3aK3zCkzxd+8K6/j qYSV3nEH2iCMVhZ/sNnZmxBpVsdPoSa7PdXCGXR6idelU4FHjOUoH4ua1yesV9iZaz9A ExNw== X-Gm-Message-State: ALoCoQnMqJty7Qzb70/82AV+9by2iseYthJ/XAVoA968ZGBgVTsZ/JJC6XdFeCTNJQisEQrzUQaK X-Received: by 10.180.13.210 with SMTP id j18mr23337301wic.51.1380123762123; Wed, 25 Sep 2013 08:42:42 -0700 (PDT) Original-Received: by 10.180.182.196 with HTTP; Wed, 25 Sep 2013 08:42:21 -0700 (PDT) X-Originating-IP: [212.247.43.194] In-Reply-To: <20130901091027.GA2959@acm.acm> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78734 Archived-At: Hi, sorry for the very late reply. On Sun, Sep 1, 2013 at 11:10 AM, Alan Mackenzie wrote: > Bug #15211 seems to be a duplicate of this bug. It's amazing how a bug > like this can remain undetected for over a decade, then suddenly two > people report it within a few hours of eachother. It is indeed amazing! I am happy to be the first of two :) > Would you please try out the patch from #15211, and let me know whether > it fixes the bug, doesn't quite fix it, or there are unwanted side > effects. Here it is again: > > > diff -r 45df171f9859 cc-engine.el > --- a/cc-engine.el Sat Aug 31 11:09:30 2013 +0000 > +++ b/cc-engine.el Sat Aug 31 20:32:22 2013 +0000 > @@ -7440,7 +7440,8 @@ > ;; interactive refontification. > (c-put-c-type-property (point) 'c-decl-arg-start)) > > - (when (and c-record-type-identifiers at-type (not (eq at-type t))) > + (when (and c-record-type-identifiers at-type ;; (not (eq at-type t)) > + ) > (let ((c-promote-possible-types t)) > (save-excursion > (goto-char type-start) This is working, thank you. However (and sorry for telling you after you closed the bug), this still is not: uint8_t *a = (uint8_t *) b; uint8_t *c = (const uint8_t *) d; uint8_t *e = (uint8_t const *) f; The erroneous behavior is still present in casts. I applied your change to the part that handles the cast, which solved the problem. I am sure you know where the cast handling is, otherwise search for "Handle the cast". The code is identical, located 20 lines earlier in version 24.3.