GNU bug report logs - #59427
CC Mode 5.35.2 (C/*l); More bad fontification

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: cc-mode; Reported by: Po Lu <luangruo@HIDDEN>; dated Mon, 21 Nov 2022 02:33:02 UTC; Maintainer for cc-mode is bug-cc-mode@HIDDEN.

Message received at 59427 <at> debbugs.gnu.org:


Received: (at 59427) by debbugs.gnu.org; 25 Nov 2022 00:38:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 24 19:38:12 2022
Received: from localhost ([127.0.0.1]:60612 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oyMjL-0002yC-RK
	for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 19:38:12 -0500
Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:33756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1oyMjJ-0002xv-2S
 for 59427 <at> debbugs.gnu.org; Thu, 24 Nov 2022 19:38:10 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1669336681; bh=kvD0Ln0Z6cQvRiXJ/ZwbicpHM0J5xrpFUgPEi5dI+mc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=Td6wNbzma1uVzaQUkAZvxplpPmc4DDiCu9VnFZ7t+DSAwRaZ62XkaegwDwuBS2v1bxXcnvS53TO9Hldh/TFkBm9jLd8UcBtEVMMEh8sC8XO6gqFlA1+YcFjsznLLmoeeLv6vlqZEiM9LPStj+D+rTqd7PNCjhQ44CtJV7ODbiOW7sQk/MyMGsM451S2N0PefV+wZTyXgU3hHxfxAl2RJxegitubBx5jUcWqbEoxrADEUSebUIkJHBG9c7Krf7eX8nU5br7QANAVEEzCBVfqhHRUaeJAbAjBi6w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iLa5iuxnSa_mWdmjrTzo5a_Babnxgy.4
 qemdyy2vQ0HwQZt7pdOf0h8qh0cEKZS3UYt_DhFutq93JJZ.fteWwUMMyeJhrseXYWqcFdIEGjYL
 3UckpCkZ8wESxkR13KpgExtkaUSXSyudbOjyhjGN2WRhYUA9LUNPv3exAzOCumihy__ClKh_q.j7
 CPhfW9eNyFJ83jKY9H0EMaok5hW7.bt0vhF1Bwzj7H8UpGCvNMcu2YazLhPyNgzq8jWzhDIDzgMg
 z_.20Es8bWChtb_jTgZGm0ux8wsmAGHrvCmBzXnmARaicoJIosJUmwBVTWG9jXQYrkaF4k7Sdc8G
 6B1lVJIaG9x5CY03IIX4IJVI_EvRwVwlI9.76UYLxWeqxH623zP62DIApzniTux6uhxylRjJ6lCX
 EtZjfxSObVO440QS6bkASwr2LvYg4GCN2fyDirbUhTSDToiF7CV_..vigUJq0RLDYBVqGj8qcHcP
 AV6lqCcFdZ5vHNLmhaDjx5OlAFl_Ddfefep3EsweeX2JNiwjmoqAzNKtnF2CjvAVwDgDE2W4ig8W
 jhDK2xLT8pd0IX51lBPIwqiW7i8QGZCQ2GO10Wa21k2v6yPyJ2ts_ahR2aj40lzJ78_bUmwldlny
 huRESbUSvAzqc2qtQZL3NLNkfYYUKYgosLlrg9iU0M8Ab4O5RGPlyBzK0DOQ4U.1DVK0z13aWqk6
 DKM3NdemGDaY2lm65bi7v6HwqegV4WYi2aEbmueTMUuleFgUY3rGNl2E_aseh9htyC6ji.fku
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 25 Nov 2022 00:38:01 +0000
Received: by hermes--production-sg3-6c8895b545-w24b9 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 1e2143030a557b82c7d3caab2b4de4a8; 
 Fri, 25 Nov 2022 00:37:55 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#59427: CC Mode 5.35.2 (C/*l); More bad fontification
In-Reply-To: <Y39qCMfJOHgckwuN@ACM> (Alan Mackenzie's message of "Thu, 24 Nov
 2022 12:56:40 +0000")
References: <87bkp16nr9.fsf.ref@HIDDEN> <87bkp16nr9.fsf@HIDDEN>
 <Y39qCMfJOHgckwuN@ACM>
Date: Fri, 25 Nov 2022 08:37:48 +0800
Message-ID: <87a64fzx5v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.20863
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 966
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 59427
Cc: 59427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Mackenzie <acm@HIDDEN> writes:

> Hello, Po.
>
> On Mon, Nov 21, 2022 at 10:32:26 +0800, Po Lu via CC-Mode-help wrote:
>> Package: cc-mode
>
>> Insert the following text in a c-mode buffer:
>
>> static uint64_t
>> ConfineTime (uint64_t time)
>> {
>>   uint32_t milliseconds;
>
>>   /* Given a microsecond time, confine the millisecond part to
>>      CARD32.  */
>>   milliseconds = time / 1000;
>
>>   return (milliseconds * (uint64_t) 1000
>> 	  + time % 1000);
>> }
>
>> Notice how "milliseconds" is recognized as a type, and the uint64_t in
>> the cast as an identifier.
>
> Yes.  Here the "symmetric space" criterion for * was buggy.  That
> criterion says if there is whitespace on neither side of the *, or both,
> it is a multiplication sign.  Otherwise it is the indirection operator.
>
> The bug was not taking the ( properly into account.  Please apply the
> attached patch, which should fix this, and confirm it works OK.  Thanks!

It does, thanks.




Information forwarded to bug-cc-mode@HIDDEN:
bug#59427; Package cc-mode. Full text available.

Message received at 59427 <at> debbugs.gnu.org:


Received: (at 59427) by debbugs.gnu.org; 24 Nov 2022 12:56:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 24 07:56:54 2022
Received: from localhost ([127.0.0.1]:57665 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oyBmf-00044L-NO
	for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 07:56:54 -0500
Received: from mx3.muc.de ([193.149.48.5]:50578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1oyBma-000445-NN
 for 59427 <at> debbugs.gnu.org; Thu, 24 Nov 2022 07:56:52 -0500
Received: (qmail 33362 invoked by uid 3782); 24 Nov 2022 13:56:41 +0100
Received: from acm.muc.de (p4fe158b1.dip0.t-ipconnect.de [79.225.88.177])
 (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Thu, 24 Nov 2022 13:56:41 +0100
Received: (qmail 26625 invoked by uid 1000); 24 Nov 2022 12:56:40 -0000
Date: Thu, 24 Nov 2022 12:56:40 +0000
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#59427: CC Mode 5.35.2 (C/*l); More bad fontification
Message-ID: <Y39qCMfJOHgckwuN@ACM>
References: <87bkp16nr9.fsf.ref@HIDDEN>
 <87bkp16nr9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Jfuzj+0OPjjfQZue"
Content-Disposition: inline
In-Reply-To: <87bkp16nr9.fsf@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 59427
Cc: 59427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--Jfuzj+0OPjjfQZue
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello, Po.

On Mon, Nov 21, 2022 at 10:32:26 +0800, Po Lu via CC-Mode-help wrote:
> Package: cc-mode

> Insert the following text in a c-mode buffer:

> static uint64_t
> ConfineTime (uint64_t time)
> {
>   uint32_t milliseconds;

>   /* Given a microsecond time, confine the millisecond part to
>      CARD32.  */
>   milliseconds = time / 1000;

>   return (milliseconds * (uint64_t) 1000
> 	  + time % 1000);
> }

> Notice how "milliseconds" is recognized as a type, and the uint64_t in
> the cast as an identifier.

Yes.  Here the "symmetric space" criterion for * was buggy.  That
criterion says if there is whitespace on neither side of the *, or both,
it is a multiplication sign.  Otherwise it is the indirection operator.

The bug was not taking the ( properly into account.  Please apply the
attached patch, which should fix this, and confirm it works OK.  Thanks!

> Emacs  : GNU Emacs 29.0.50 (build 236, x86_64-pc-linux-gnu)
>  of 2022-11-21
> Package: CC Mode 5.35.2 (C/*l)
> Buffer Style: gnu
> c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties category-properties 1-bit)

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).


--Jfuzj+0OPjjfQZue
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="diff.20221123.diff"

diff -r d37a87d7240d cc-engine.el
--- a/cc-engine.el	Thu Nov 17 10:20:00 2022 +0000
+++ b/cc-engine.el	Wed Nov 23 12:48:03 2022 +0000
@@ -11096,8 +11096,9 @@
 			      at-decl-start))
 		 (let ((space-before-id
 			(save-excursion
-			  (goto-char name-start)
-			  (or (bolp) (memq (char-before) '(?\  ?\t)))))
+			  (goto-char id-start)
+			  (and (> (skip-chars-forward "* \t\n\r") 0)
+			       (memq (char-before) '(?\  ?\t ?\n ?\r)))))
 		       (space-after-type
 			(save-excursion
 			  (goto-char type-start)
@@ -11107,6 +11108,8 @@
 				   (memq (char-after) '(?\  ?\t)))))))
 		   (when (not (eq (not space-before-id)
 				  (not space-after-type)))
+		     (when (eq at-type 'maybe)
+		       (setq unsafe-maybe t))
 		     (setq maybe-expression t)
 		     (throw 'at-decl-or-cast t)))))
 

--Jfuzj+0OPjjfQZue--




Information forwarded to bug-cc-mode@HIDDEN:
bug#59427; Package cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Nov 2022 02:32:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 20 21:32:49 2022
Received: from localhost ([127.0.0.1]:44975 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1owwc5-0003sn-4O
	for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 21:32:49 -0500
Received: from lists.gnu.org ([209.51.188.17]:42638)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1owwbz-0003sa-7O
 for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 21:32:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1owwby-0002AF-Uz
 for bug-gnu-emacs@HIDDEN; Sun, 20 Nov 2022 21:32:42 -0500
Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1owwbw-00082d-KY
 for bug-gnu-emacs@HIDDEN; Sun, 20 Nov 2022 21:32:42 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1668997957; bh=WcHFXMJyi0r28BCkwgPuj7dnTUTlHRQMkX3JscpzWYQ=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=odNXPSCfyFFPrnyY3e5PNHquzBc0ZR8vqAmpo8Pw+UkRvmmTa3R7NjRdgzWWkcaWviaauoFamwV8IWLoEgiBnOLi8wDt3WRKC6WHCS/VgIPXT41LP3tduhqd7QszG2m83XxD4RFM51PU7JBPaZbNDW3AORy4IH6pjzh3DwdnHxdfsrN1kv35dO253j24JtNdGeeEqt7u2D2ak7AGPNUy3SgZSHiqefuZyvPO6UbzBTAWeR+LHLeZyloVLdgxdcEW5obU9I/6iCp8KxPD1NndaNJhBWkQkArVS0k1Q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HvPoth57vkxt7kKhzU78RL7FTUS5QQA1mghAgSUhidZO_
 vGstfAc1qXHJrb.nd9qKg8FyiPgeoH_SWjkmBWhqL3f7fxLGqYtBtTwLQvHDSGFH6GconFsx6_zC
 MBtabpy4wm3z19vz2Ilmi1pUbnuPoT3RCbkJbR5_nHFOeGmfQgdAPmzyEi0hH9kE0sZpFRAMQMfJ
 Qe3yVVtSDp04o6HN6CHlG.OSbYFVoaJl3g0baVWDs4fjSeAE5uWUIuZ7BhEjukqDInfmyyHk1vis
 iI99D6jSAyaJroG5CruOn2pQ2dy8pD0bYY6pTisLhbW69UYM5wYuODRoqQ3_6e01gEZNYAALrtpP
 21W0yZ_Y4NLgtoo4GcP9GnR6EGvjeCY6Xjhqv4DztWeAsibgOdkUkV1uiTv6avZ1GFgHvrRlukXI
 exWS1oUHgMW9dH75sxS3d4ewQEr.shZkXwMSnQDIRNbcUncgKRShuFdqM2b6oMo.MGncOM_zjLiT
 o_6O2mo8RGjyEiUBWwC7ZdteQIbP2RyK3xqrYzqNa7bf96esrmKbNe9KNun8KnFYgPDhVoDFBS74
 64O55ucbRgcxRIGuYCP8ndHIWwAyVVP9_T7dNQ5YmvGqEXsmOGnDAAa60BJx5yuUOIxtslezas09
 MPIhmuKr6s6HZJjm05tNESJOQqsj_aIcGa094BUg86AtXqNds0xcy5gye3iqL5X6FGzDqB3iptW1
 Fn0wZzXOzplM33VEW40U9nxNcot2fiGjuJdU9TnVLpdhsy0lBInldPjUdNA--
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic301.consmr.mail.ne1.yahoo.com with HTTP; Mon, 21 Nov 2022 02:32:37 +0000
Received: by hermes--production-sg3-6c8895b545-mvhb5 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID c78e06b21d9a330c0390b9822d0340fe; 
 Mon, 21 Nov 2022 02:32:30 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: CC Mode 5.35.2 (C/*l); More bad fontification
X-Debbugs-Package: cc-mode
Date: Mon, 21 Nov 2022 10:32:26 +0800
Message-ID: <87bkp16nr9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
References: <87bkp16nr9.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.20863
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4926
Received-SPF: pass client-ip=66.163.184.199; envelope-from=luangruo@HIDDEN;
 helo=sonic301-30.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.6 (-)

Package: cc-mode

Insert the following text in a c-mode buffer:

static uint64_t
ConfineTime (uint64_t time)
{
  uint32_t milliseconds;

  /* Given a microsecond time, confine the millisecond part to
     CARD32.  */
  milliseconds =3D time / 1000;

  return (milliseconds * (uint64_t) 1000
	  + time % 1000);
}

Notice how "milliseconds" is recognized as a type, and the uint64_t in
the cast as an identifier.

Emacs  : GNU Emacs 29.0.50 (build 236, x86_64-pc-linux-gnu)
 of 2022-11-21
Package: CC Mode 5.35.2 (C/*l)
Buffer Style: gnu
c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-st=
ring-delim gen-comment-delim syntax-properties category-properties 1-bit)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 c-basic-offset 2
 c-comment-only-line-offset '(0 . 0)
 c-indent-comment-alist '((anchored-comment column . 0) (end-block space . =
1)
			  (cpp-end-block space . 2))
 c-indent-comments-syntactically-p nil
 c-block-comment-prefix ""
 c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (awk-mode . "#+")
			   (other . "//+\\|\\**"))
 c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc)
		       (c-mode . gtkdoc) (c++-mode . gtkdoc))
 c-cleanup-list '(scope-operator)
 c-hanging-braces-alist '((substatement-open before after)
			  (arglist-cont-nonempty))
 c-hanging-colons-alist nil
 c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
 c-backslash-column 48
 c-backslash-max-column 72
 c-special-indent-hook '(t c-gnu-impose-minimum)
 c-label-minimum-indentation 1
 c-offsets-alist '((inexpr-class . +)
		   (inexpr-statement . +)
		   (lambda-intro-cont . +)
		   (inlambda . 0)
		   (template-args-cont c-lineup-template-args +)
		   (incomposition . +)
		   (inmodule . +)
		   (innamespace . +)
		   (inextern-lang . +)
		   (composition-close . 0)
		   (module-close . 0)
		   (namespace-close . 0)
		   (extern-lang-close . 0)
		   (composition-open . 0)
		   (module-open . 0)
		   (namespace-open . 0)
		   (extern-lang-open . 0)
		   (objc-method-call-cont
		    c-lineup-ObjC-method-call-colons
		    c-lineup-ObjC-method-call
		    +
		    )
		   (objc-method-args-cont . c-lineup-ObjC-method-args)
		   (objc-method-intro . [0])
		   (friend . 0)
		   (cpp-define-intro c-lineup-cpp-define +)
		   (cpp-macro-cont . +)
		   (cpp-macro . [0])
		   (inclass . +)
		   (stream-op . c-lineup-streamop)
		   (arglist-cont-nonempty
		    c-lineup-gcc-asm-reg
		    c-lineup-arglist
		    )
		   (arglist-cont c-lineup-gcc-asm-reg 0)
		   (comment-intro
		    c-lineup-knr-region-comment
		    c-lineup-comment
		    )
		   (catch-clause . 0)
		   (else-clause . 0)
		   (do-while-closure . 0)
		   (access-label . -)
		   (case-label . 0)
		   (substatement . +)
		   (statement-case-intro . +)
		   (statement . 0)
		   (brace-entry-open . 0)
		   (brace-list-entry . 0)
		   (brace-list-close . 0)
		   (block-close . 0)
		   (block-open . 0)
		   (inher-cont . c-lineup-multi-inher)
		   (inher-intro . +)
		   (member-init-cont . c-lineup-multi-inher)
		   (member-init-intro . +)
		   (annotation-var-cont . +)
		   (annotation-top-cont . 0)
		   (topmost-intro . 0)
		   (knr-argdecl . 0)
		   (func-decl-cont . +)
		   (inline-close . 0)
		   (class-close . 0)
		   (class-open . 0)
		   (defun-block-intro . +)
		   (defun-close . 0)
		   (defun-open . 0)
		   (c . c-lineup-C-comments)
		   (string . c-lineup-dont-change)
		   (topmost-intro-cont
		    first
		    c-lineup-topmost-intro-cont
		    c-lineup-gnu-DEFUN-intro-cont
		    )
		   (brace-list-intro
		    first
		    c-lineup-2nd-brace-entry-in-arglist
		    c-lineup-class-decl-init-+
		    +
		    )
		   (brace-list-open . +)
		   (inline-open . 0)
		   (arglist-close . c-lineup-arglist)
		   (arglist-intro . c-lineup-arglist-intro-after-paren)
		   (statement-cont . +)
		   (statement-case-open . +)
		   (label . 0)
		   (substatement-label . 0)
		   (substatement-open . +)
		   (knr-argdecl-intro . 5)
		   (statement-block-intro . +)
		   )
 c-buffer-is-cc-mode 'c-mode
 c-tab-always-indent t
 c-syntactic-indentation t
 c-syntactic-indentation-in-macros t
 c-ignore-auto-fill '(string cpp code)
 c-auto-align-backslashes t
 c-backspace-function 'backward-delete-char-untabify
 c-delete-function 'delete-char
 c-electric-pound-behavior nil
 c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "gnu"))
 c-enable-xemacs-performance-kludge-p nil
 c-old-style-variable-behavior nil
 defun-prompt-regexp nil
 tab-width 8
 comment-column 32
 parse-sexp-ignore-comments t
 parse-sexp-lookup-properties t
 auto-fill-function nil
 comment-multi-line t
 comment-start-skip "\\(?://+\\|/\\*+\\)\\s *"
 fill-prefix nil
 fill-column 70
 paragraph-start "[ 	]*\\(//+\\|\\**\\)[ 	]*$\\|^\f"
 adaptive-fill-mode t
 adaptive-fill-regexp "[ 	]*\\(//+\\|\\**\\)[ 	]*\\([ 	]*\\([-=E2=80=93!|#%=
;>*=C2=B7=E2=80=A2=E2=80=A3=E2=81=83=E2=97=A6]+[ 	]*\\)*\\)"
 )




Acknowledgement sent to Po Lu <luangruo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-cc-mode@HIDDEN. Full text available.
Report forwarded to bug-cc-mode@HIDDEN:
bug#59427; Package cc-mode. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 25 Nov 2022 00:45:01 UTC

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