From unknown Sat Jun 14 18:55:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59773 <59773@debbugs.gnu.org> To: bug#59773 <59773@debbugs.gnu.org> Subject: Status: CC Mode 5.35.2 (C/*l); Even more bad type fontification Reply-To: bug#59773 <59773@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:55:00 +0000 retitle 59773 CC Mode 5.35.2 (C/*l); Even more bad type fontification reassign 59773 cc-mode submitter 59773 Po Lu severity 59773 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 07:09:55 2022 Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 12:09:55 +0000 Received: from localhost ([127.0.0.1]:46355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p14rb-0002Lm-48 for submit@debbugs.gnu.org; Fri, 02 Dec 2022 07:09:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:57368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p14rZ-0002Lg-6P for submit@debbugs.gnu.org; Fri, 02 Dec 2022 07:09:53 -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 ) id 1p14rY-0005al-W1 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 07:09:53 -0500 Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p14rW-000120-I3 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 07:09:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669982986; bh=MDlO1m8bRHJCcXgBsuFSDpD3KyDwS29KT4s4LBTkwDg=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=dDyWfSpc3+VepqGIsoM5eOVti/ELf1qFgFfgGbeCdiTrcmi5kDC7oSXiAA3cLCyW6JxGtktMMlsjOqDdjl8EIbMPws0yX3bOVazyjbJj2Yn5ChN4oDqcoQZHnpJFoJU3GRCx2rniEsYtUVabyRgm6Sn0lQ6hATfxz8EK62+QzkwvPH3fVAPHuyWisAFExaGaVXad82CnCEEaSpA2t0JeBDRl7dulzfs24f6Jcpuk/7eMpgBQT6m47Fg9/a6xF2beknmJhzaFjXZxp5yp4XowTrI7Krr/Ksh0UFm/iPH61ROjoRlUD4YLhQWByD5elCXEAaMNbcu7eWoLbTBozRgGKw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1669982986; bh=Hw114uyshb27r5PVwetHQeBXYr6+DBAYxN8XnZIqR5K=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=sCDC2alNMlcehXvE2pZC8QbFy5/To2dCS1PQB/75wo6T2GbSjY57LtdE8Qinrx+pNC7Vw8SvrVmI564gXALgYDVfJUH1Uz9xkrnkX4kht5L9wVe2APK9pzD4H7IoFS4PedZTBAx6zRlYF+rA+gkykKGGADo5DDN/LuFNaJ8NPvTtG+z6QRAhU2obCQ47Yny+kTuXXzIqipUXrKFsBaV2VQkJN6I5EfloJ/HkpRxLurDrPxiBQA2796+Z0MdRTx31gOV04S3sOu2qWkJxGV7UzM5DkUDpdX4Qn1umsvgGPY+68I8zAYw6QkcZjJMhsopDJ8+Md4JEOl9U2YhFA45G8Q== X-YMail-OSG: MZZwb1wVM1lB.5x14YTgxPAbK84mCkXZZ4kR3rJc5J9uDiao1wNpTOZFLgFrxPH .ZWrAwhORy8n2DRk9voguaFCkPpHNuPSwcFXRmbcJfmxwppmK8mdTK.CqpEP95r1dUzE5ApoxxRH nP5L4IYQNWGUVHykdWjV0NpICAMc5WkPh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Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Fri, 2 Dec 2022 12:09:46 +0000 Received: by hermes--production-sg3-b666c6484-4bg7k (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 89bfac1969e08ae7f7a614226561ff4e; Fri, 02 Dec 2022 12:09:40 +0000 (UTC) From: Po Lu To: bug-gnu-emacs@gnu.org Subject: CC Mode 5.35.2 (C/*l); Even more bad type fontification X-Debbugs-Package: cc-mode Date: Fri, 02 Dec 2022 20:09:36 +0800 Message-ID: <87a646roqn.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <87a646roqn.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.20926 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 5485 Received-SPF: pass client-ip=66.163.191.204; envelope-from=luangruo@yahoo.com; helo=sonic312-23.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, 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) Package: cc-mode Insert the following text in a C Mode buffer: /* r1 region implementation. The approach here is to represent regions as Y sorted lists (spans) of X sorted and non-overlapping rectangles (segments), and to iterate over and compare each of those spans and then rectangles when performing an operation involving two regions. */ struct r1_span { /* Ordered set of segments in the segment. */ gl_oset_t segments; /* The Y coordinate of the span. */ int y; }; struct r1_segment { /* The associated span. */ struct r1_span *span; /* The associated X coordinate. */ int x; }; struct r1_data { /* Ordered set of all spans in the region. */ gl_oset_t spans; }; region * make_r1_region (void) { region *region; struct r1_data *r1_data; region =3D server_malloc (sizeof *region + sizeof *r1_data); if (!region) return NULL; region->operate =3D r1_operate; region->count =3D r1_count; region->export =3D r1_export; r1_data =3D region + sizeof *region; } in "make_r1_region", `region' and `r1_data' are fontified as types! Emacs : GNU Emacs 30.0.50 (build 27, x86_64-pc-linux-gnu) of 2022-12-02 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-no= nempty)) 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-DEF= UN-intro-cont) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-c= lass-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]+[ ]*\\)*\\)" )