From unknown Thu Jun 19 14:05:03 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#59070 <59070@debbugs.gnu.org> To: bug#59070 <59070@debbugs.gnu.org> Subject: Status: CC Mode 5.35.1 (C/*l); Failure to completely fontify struct type Reply-To: bug#59070 <59070@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:05:03 +0000 retitle 59070 CC Mode 5.35.1 (C/*l); Failure to completely fontify struct t= ype reassign 59070 cc-mode submitter 59070 Po Lu severity 59070 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 02:56:51 2022 Received: (at submit) by debbugs.gnu.org; 6 Nov 2022 07:56:51 +0000 Received: from localhost ([127.0.0.1]:58606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oraWR-0001jW-05 for submit@debbugs.gnu.org; Sun, 06 Nov 2022 02:56:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:54774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oraWO-0001jM-T0 for submit@debbugs.gnu.org; Sun, 06 Nov 2022 02:56:49 -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 1oraWN-0004Dd-J5 for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 02:56:48 -0500 Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oraWK-0003pE-QZ for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 02:56:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667721400; bh=D2HQu1fz1qgLbAwYCBVONuKnb+TcLVIk4jBDYSiz+l4=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=rm4Il77J/7iylkP73XGZMXNlnqf0VTVkVTl97pmhqH8f8oVUTe56tIBaVCqZWzCKjfM5JK4skTN8PCqwuF9mqR2tR70EujpBGvkjQ2qXTyjDIpD8X1eOj7H2NG+cta0tQP0ArV/Y2TT2C3WXIe+AdLQH1iK5DZ8xbLS/Myfg+e7d4HEakeD+7e4yoW0Hq7rn8SB1pFq7OAdP24U0BhrMMwqiOlkOI4PqiLE8BGWSJLqdXLY2n0SM9bexhnTPN4kT69+XykF0D4PrQY0T0sSrGOwkYmp60Oajm3vQnTAfbDKH8v5KBxx3dbhyDsL2xFm+mb6yyFrhjU5UDg/Kg6p/Yg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667721400; bh=vca9I7isE42XMdze0CL1gX7udLQpc2PolBP5M6dCcc2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MXa655ixm6Z1TGkMo9OXKiwTx0HeFc4MuyfEw7RjXQGsiqE3MUH9YCKbLGYawScHka849tU3f1NT+AXJMnjaG1fjEV070fCla9S2gbb7WBfIDqNDN5IE+tmr38Ec3J9VvAgwS5wGFEK9/HRA9BKgVnOmEvhIIl7gdPYrcX8F80J/8YoYcIDl58cBaRl1ir1U9wHRMistlsCrcfSUOO7m8oGn+6rjmjC+bP+cx5HBcI3Q1RLhOY9V9NLJ6iJUzEeSOop9HHdVkRi0ggw8mRGrvqqNciIo36KmgnuQGO4f0hgf4Qle/X13eCQB04uay0AeHdW5/5UI8Mkj3aRN5U2jkw== X-YMail-OSG: DkBMC7oVM1lBA6tR2KaHJ6nevPQw8P..jQVmu8nLGaN7fxDMMD2bdInEbjjd6ZI vp2CGbGCzxtuPeZ6ZeyiLUB1pI9zxNZxmiR0tc7Gme6._hQFPgm2OwxV3XnTYmf3p8vYxyqBFqWI rjU24mYW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yEkozhtmZkWKx_GxEOUuBIbOYhuw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sun, 6 Nov 2022 07:56:40 +0000 Received: by hermes--production-sg3-6c8895b545-26lc9 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5e6a9948bb4eac49ddbd53ee0196925a; Sun, 06 Nov 2022 07:56:35 +0000 (UTC) From: Po Lu To: bug-gnu-emacs@gnu.org Subject: CC Mode 5.35.1 (C/*l); Failure to completely fontify struct type X-Debbugs-Package: cc-mode Date: Sun, 06 Nov 2022 15:56:15 +0800 Message-ID: <878rkoa540.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <878rkoa540.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.20826 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 5218 Received-SPF: pass client-ip=66.163.189.148; envelope-from=luangruo@yahoo.com; helo=sonic314-22.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@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 Start with the following text in a c-mode buffer: static const struct test_seat_controller_interface seat_controller_impl =3D { .destroy =3D DestroyTestSeatController, .bind_seat =3D BindSeat, .get_XIModifierState =3D GetXIModifierState, .get_XIButtonState =3D GetXIButtonState, .get_XIValuatorState =3D GetXIValuatorState, .dispatch_XI_Enter =3D DispatchXIEnter, .dispatch_XI_Leave =3D DispatchXILeave, .dispatch_XI_Motion =3D DispatchXIMotion, .dispatch_XI_ButtonPress =3D DispatchXIButtonPress, .dispatch_XI_ButtonRelease =3D DispatchXIButtonRelease, }; move point to the end of the line reading ".dispatch_XI_ButtonPress =3D DispatchXIButtonRelease", and then type RET. At that point, "test_seat_controller_interface" will no longer be completely fontified as a type. Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu) of 2022-10-29 Package: CC Mode 5.35.1 (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]+[ ]*\\)*\\)" ) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 07:45:46 2022 Received: (at 59070) by debbugs.gnu.org; 9 Nov 2022 12:45:46 +0000 Received: from localhost ([127.0.0.1]:39235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oskSg-00086d-DB for submit@debbugs.gnu.org; Wed, 09 Nov 2022 07:45:46 -0500 Received: from mx3.muc.de ([193.149.48.5]:52710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oskSd-00086Q-Ft for 59070@debbugs.gnu.org; Wed, 09 Nov 2022 07:45:44 -0500 Received: (qmail 50308 invoked by uid 3782); 9 Nov 2022 13:45:37 +0100 Received: from acm.muc.de (p4fe1582d.dip0.t-ipconnect.de [79.225.88.45]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 09 Nov 2022 13:45:36 +0100 Received: (qmail 6761 invoked by uid 1000); 9 Nov 2022 12:45:34 -0000 Date: Wed, 9 Nov 2022 12:45:34 +0000 To: Po Lu Subject: Re: bug#59070: CC Mode 5.35.1 (C/*l); Failure to completely fontify struct type Message-ID: References: <878rkoa540.fsf.ref@yahoo.com> <878rkoa540.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="98E0EIAOx4d3cie+" Content-Disposition: inline In-Reply-To: <878rkoa540.fsf@yahoo.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59070 Cc: acm@muc.de, 59070@debbugs.gnu.org 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.0 (-) --98E0EIAOx4d3cie+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, Po. On Sun, Nov 06, 2022 at 15:56:15 +0800, Po Lu via CC-Mode-help wrote: > Package: cc-mode > Start with the following text in a c-mode buffer: > static const struct test_seat_controller_interface seat_controller_impl = > { > .destroy = DestroyTestSeatController, > .bind_seat = BindSeat, > .get_XIModifierState = GetXIModifierState, > .get_XIButtonState = GetXIButtonState, > .get_XIValuatorState = GetXIValuatorState, > .dispatch_XI_Enter = DispatchXIEnter, > .dispatch_XI_Leave = DispatchXILeave, > .dispatch_XI_Motion = DispatchXIMotion, > .dispatch_XI_ButtonPress = DispatchXIButtonPress, > .dispatch_XI_ButtonRelease = DispatchXIButtonRelease, > }; > move point to the end of the line reading ".dispatch_XI_ButtonPress = > DispatchXIButtonRelease", and then type RET. At that point, > "test_seat_controller_interface" will no longer be completely fontified > as a type. Yes. The position inside that identifier where the fontification stopped was exactly 500 characters back from the start of the new line. This made it easy to locate a 500 in the Lisp source causing it. It turned out to be an off-by-one error. Would you please apply the attached patch, and confirm the bug is fixed (or say what's still wrong). Thanks! > Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu) > of 2022-10-29 > Package: CC Mode 5.35.1 (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). --98E0EIAOx4d3cie+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="diff.20221109.diff" diff -r 8e7964124ae3 cc-mode.el --- a/cc-mode.el Tue Nov 08 14:47:14 2022 +0000 +++ b/cc-mode.el Wed Nov 09 12:36:35 2022 +0000 @@ -2371,6 +2371,8 @@ ;; Go to a less nested declaration each time round this loop. (and (setq old-pos (point)) + ;; The following form tries to move to the end of the previous + ;; declaration without moving outside of an enclosing {. (let (pseudo) (while (and @@ -2385,7 +2387,9 @@ (setq pseudo (c-cheap-inside-bracelist-p (c-parse-state))))))) (goto-char pseudo)) t) - (>= (point) bod-lim) + (or (> (point) bod-lim) + (eq bod-lim (point-min))) + ;; Move forward to the start of the next declaration. (progn (c-forward-syntactic-ws) ;; Have we got stuck in a comment at EOB? (not (and (eobp) --98E0EIAOx4d3cie+-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 21:54:45 2022 Received: (at 59070) by debbugs.gnu.org; 10 Nov 2022 02:54:45 +0000 Received: from localhost ([127.0.0.1]:41495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osxiH-0002o4-C6 for submit@debbugs.gnu.org; Wed, 09 Nov 2022 21:54:45 -0500 Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:36835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osxiF-0002nq-4A for 59070@debbugs.gnu.org; Wed, 09 Nov 2022 21:54:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668048875; bh=JhHpsqvtYYySpwvk56x3Z7z6zNdGG3Top0kyOGeuuCw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=RGsWMZYxgd0OM+/bXJvntVibIWS/fdq+lg7sWM7NzG+xQLaZBskdBlneafo5gqQs+prX5Oqc3IA5Xtn9mmGWd4B5+oqMIRfbWhEFthuPy6qIS3oBiBeSzatWD0Ti5DcOqyQQL5xGQqRXksOh8jcHtpd4cajVuZjvXTos+Gr8X9mId5RDt6er68KrTOH5u3paBR8OStCrtFSgasGzEYcHMMFEJtkIaJj3x0myLpo0W5LNJ2ivIVKTVntc+bUiEWLWRvnB8TDRW/VIV6oinFrMkDFszhN/ZtRPSlaz0J7MaLDZ68yequz1584YIL+xhRr6B3E44cV4qe06PmpIpyqcjw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668048875; bh=rLujK6T8kokM9A+3ur9P5FUzOx6vbst0zuWhJKiX6GA=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=NisCviJiyxU677Ctz5tOl5+qx2ddBSbdsdARNc4Rdy7LvaEvQ5FUIPyTIiXDRHPw6Y5p6HYThUYccGNtcShJ78iPq3EbtcJxTY1x5qLjT3lT0kwFyQq/OL5ECL/aM8cvo/Dgn1H0uuzVxpwqKnxJSmBU1r1AaCqnhEKaPBzgS/6ivJgl3xI8ulYgX5xnOKuLLbtSYjgpBFuNCaY63yUWzxm7fmEB/D9wpKPaA9jQPl6KOlADWQqbDm/SdAasOYOtewGBwNuaEZfc+j4u5c0+kS0ykTy79jtZ1ol8+9+NlGa93+heO6xGgn7Os8oG1uEvOb2qMl5QwvenCsAA7Mpdaw== X-YMail-OSG: FQijEH0VM1kB5bhFynsW1fRnw019NSKyU5TpNeK_gnsMAtByx8JvD4xhJZscNHG St4TTXdAzcyMIH9EUJyTmeAa9UzikTmsFqVgX1UMJ8FtlS4WSpAICx6rnnztrQXRXwDqAsy6aGXf zK03twayrQUueQkwgXBt4ztTDJ8dthqnll.8SJVFr.HVwcz8mCc1V1J0R96d.OBCeIWdIdeeKj9b 3dLOjohAUTf8kK9oPIeMw8guoRvLiD121IYKsfaVLvOm7CiIoJvvVzlYCCgdtyAE2f.Cuj5cAugk YgLK0hn_.k2QFxPwvQI3AjcyfdnNyXlSkYGrrmhmzsw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MfnXVDQis8jnWN_yI KccofK6i88UtnD4_HdQi9QNcdq7R7XPtQ2AQfIwEFQugFnI9574icGCWRsL6rmdyn5DUFq9dP0J5 suruJqU46mHYLdI_l.0IJCvY3G8dPJEoWu2E7ZtDgwroKCAFoT_H8qTeS60v_jKkPGURWfLnIBdv LrNGPKe_HLzZXdQLIWM0YRDjvdKnwTpSL0AqWijiNhi9eq1VKb6SERy0Bj7DYK8YpQIwpRHumgVF QPGdw9_drkPmIxPD14XvfsbCQN70dkYFHvqb.8TmTMZTW2_zQQHd9Aa5HukyaIUtKF30.h5gaPlS MBOgJTZSnZRe1RhhVU7Lq2H53YnGY3hNJpojlSYAfBgyGsuUMfLLwH.CIpttD91BHLpiVfBPZ2.N T4WouCKOi7Cf79cOgpJdYX_DxblgbbF5az9FQ5ooKVwsXZFdKqZgWL.kllHx4mfEJollAWKpaDOK YBdpwln3uscKAUfeGuhTumgBM6ZtW70U0TyAL388rJ5r32A_7rhAOvEc9bKwOYCp6zHm_srR5Mz1 88QQzyfrpICEp5rmDFVZVDUMQv2tlin52KnWs76o1wrbPve9zerwbhmUSRjYnSD6sr5P9.ZWdPaj YRsPnE.DBolHxSYAEgOQv7KPnaJPC670lef0C3q0zSB2pef5Tv1m372Xaw1Yzv_J5LYZjx5UA.W9 RZWxHG4808yRooiCji36knhkNXOHrgF.u3M9xpxTRaOn7ZjtNP.kjxm_pAhHTCFJXWxGXFOsZnLe .plIhQVYrZ_it1d.akxckzcUjSYT77xZ0SxSl5.XLktkspcV3I9.I.0hsd4A9tHGOpfhO9WsO7yj DyVwmhAglhatmcoLrfMt8jtLEDMIvUhtjheVIMZZ7ZW_E2D.rHEHBI5e4XaEAHg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 10 Nov 2022 02:54:35 +0000 Received: by hermes--production-sg3-6c8895b545-phbzr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a99fc60d95bef960bdebb477ec739a43; Thu, 10 Nov 2022 02:54:29 +0000 (UTC) From: Po Lu To: Alan Mackenzie Subject: Re: bug#59070: CC Mode 5.35.1 (C/*l); Failure to completely fontify struct type In-Reply-To: (Alan Mackenzie's message of "Wed, 9 Nov 2022 12:45:34 +0000") References: <878rkoa540.fsf.ref@yahoo.com> <878rkoa540.fsf@yahoo.com> Date: Thu, 10 Nov 2022 10:54:23 +0800 Message-ID: <877d035xk0.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.20826 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1706 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59070 Cc: 59070@debbugs.gnu.org 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.0 (-) Alan Mackenzie writes: > Hello, Po. > > On Sun, Nov 06, 2022 at 15:56:15 +0800, Po Lu via CC-Mode-help wrote: >> Package: cc-mode > >> Start with the following text in a c-mode buffer: > >> static const struct test_seat_controller_interface seat_controller_impl = >> { >> .destroy = DestroyTestSeatController, >> .bind_seat = BindSeat, >> .get_XIModifierState = GetXIModifierState, >> .get_XIButtonState = GetXIButtonState, >> .get_XIValuatorState = GetXIValuatorState, >> .dispatch_XI_Enter = DispatchXIEnter, >> .dispatch_XI_Leave = DispatchXILeave, >> .dispatch_XI_Motion = DispatchXIMotion, >> .dispatch_XI_ButtonPress = DispatchXIButtonPress, >> .dispatch_XI_ButtonRelease = DispatchXIButtonRelease, >> }; > >> move point to the end of the line reading ".dispatch_XI_ButtonPress = >> DispatchXIButtonRelease", and then type RET. At that point, >> "test_seat_controller_interface" will no longer be completely fontified >> as a type. > > Yes. The position inside that identifier where the fontification > stopped was exactly 500 characters back from the start of the new line. > This made it easy to locate a 500 in the Lisp source causing it. It > turned out to be an off-by-one error. > > Would you please apply the attached patch, and confirm the bug is fixed > (or say what's still wrong). > > Thanks! > >> Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu) >> of 2022-10-29 >> Package: CC Mode 5.35.1 (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) > > [ .... ] That seems to work here, thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 05:19:39 2022 Received: (at 59070-done) by debbugs.gnu.org; 10 Nov 2022 10:19:39 +0000 Received: from localhost ([127.0.0.1]:42000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4ep-0007eA-Fa for submit@debbugs.gnu.org; Thu, 10 Nov 2022 05:19:39 -0500 Received: from mx3.muc.de ([193.149.48.5]:58390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4em-0007dw-Sk for 59070-done@debbugs.gnu.org; Thu, 10 Nov 2022 05:19:37 -0500 Received: (qmail 65158 invoked by uid 3782); 10 Nov 2022 11:19:30 +0100 Received: from acm.muc.de (p4fe15626.dip0.t-ipconnect.de [79.225.86.38]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 10 Nov 2022 11:19:29 +0100 Received: (qmail 11519 invoked by uid 1000); 10 Nov 2022 10:19:29 -0000 Date: Thu, 10 Nov 2022 10:19:29 +0000 To: Po Lu Subject: Re: bug#59070: CC Mode 5.35.1 (C/*l); Failure to completely fontify struct type Message-ID: References: <878rkoa540.fsf.ref@yahoo.com> <878rkoa540.fsf@yahoo.com> <877d035xk0.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877d035xk0.fsf@yahoo.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59070-done Cc: 59070-done@debbugs.gnu.org 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.0 (-) Hello, Po. On Thu, Nov 10, 2022 at 10:54:23 +0800, Po Lu wrote: > Alan Mackenzie writes: > > On Sun, Nov 06, 2022 at 15:56:15 +0800, Po Lu via CC-Mode-help wrote: [ .... ] > > Would you please apply the attached patch, and confirm the bug is fixed > > (or say what's still wrong). > > Thanks! [ .... ] > That seems to work here, thanks. Thanks! I've committed the patch, and I'm closing the bug with this post. -- Alan Mackenzie (Nuremberg, Germany). From unknown Thu Jun 19 14:05:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 Dec 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator