From unknown Sat Aug 16 21:58:46 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#59051 <59051@debbugs.gnu.org> To: bug#59051 <59051@debbugs.gnu.org> Subject: Status: CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type Reply-To: bug#59051 <59051@debbugs.gnu.org> Date: Sun, 17 Aug 2025 04:58:46 +0000 retitle 59051 CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type reassign 59051 cc-mode submitter 59051 Po Lu severity 59051 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 05 08:35:34 2022 Received: (at submit) by debbugs.gnu.org; 5 Nov 2022 12:35:34 +0000 Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orIOc-0005Xv-CX for submit@debbugs.gnu.org; Sat, 05 Nov 2022 08:35:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:55246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orIOa-0005Xo-C0 for submit@debbugs.gnu.org; Sat, 05 Nov 2022 08:35:33 -0400 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 1orIOB-0006qw-9M for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2022 08:35:19 -0400 Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orIO8-0007En-K1 for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2022 08:35:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667651699; bh=K/BJWFvUgGbIUoj3b0K2bMua9pciS4nKLRj73OEjsYk=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=rme0b7hpC3ldYQMii6V/9oGEpIhHB3nMmXxMQdnNVnPTf+QVkDmnEwc8HMT3RevqfNH//PeDNgkD0zzLnyRMzovnYz4AexjLWHDIzofJZ7pJ34EgeKdYNNdFr8MndyzfmB2kmS1AFP6cblCYqSR4Dqj0Gc1FL58r79PT43CzwLjvwuxLg8qic+o0BiLeY0i+qoMUMRfp2CPN4S4cJMuxeK4xwbz4G9SIpwZOcAlTEz1RouZOUuU8cAcB8V/GOJPKf0CaT9+LAZK5wiPMapYrSht4oUnHkLNrKEVjHaiTtftgy8BBuAMfxnoyjsSzGiJuGOkBnLxgdQUQnx0iX/OBSA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667651699; bh=24innWo3gK3oRkRkpHkOPUEJf7G3/Se0RIvZsbUF1rK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HkkR6F9sUvbcw/IyYwtNoWzY0vZHMDggSm+sVGhrInOTOg1PhzZJR9h4+WoujPzirwdCjgbh+9DTq3MXEex1CfLH8yeMYDh16V1B3PwXLMALHqimIg/cJVOSpfa3jSvYkKVn7MsvyilGirCS0NJ8BCu+snQxW8ud1mVW3BeIgx3A2o81q9/PavoPoTNjM8/lrbRRYhqVrYW8MYlbhznd7lYoe9QckCnT/WCjP1UAykI6p/y3IO2+5E1AUaWFZ7Df3b8b2LOl7Vw2ecq20EAh9hmPz7eQEAD2i3FtX1eko7xV4GaQRY0tUNMVvZAPoyO2F/pZUyteL/dHwb8FUW5gPg== X-YMail-OSG: oVXD0rEVM1l1vun5pvnooiB4WhCm.J_6jk8EjhR8l8FGivdKOKRBv50IBogjlrz ctN9ZDkiFkc1NYP581tjprOIebQXTfjxlW1zM.pQZwmDbW9ROrodeNfPbnBdb0k4RsZI24bjhTF9 0v7kfZiTl0cbvwGixcQ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UpwnG7bc5QXvf_aabexh8- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 5 Nov 2022 12:34:59 +0000 Received: by hermes--production-sg3-6c8895b545-pb7wm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 58dbf89a6ff75f0a698a96f6b6857d55; Sat, 05 Nov 2022 12:34:52 +0000 (UTC) From: Po Lu To: bug-gnu-emacs@gnu.org Subject: CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type X-Debbugs-Package: cc-mode Date: Sat, 05 Nov 2022 20:34:46 +0800 Message-ID: <87leopa8bd.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <87leopa8bd.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: 4988 Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.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 Go to src/xterm.c in the Emacs source code. Then, type M-> and keep pressing M-v until the beginning of the buffer is reached. Afterwards, go to line 14458, around which will be the following function definition: MAYBE_UNUSED static void xi_select_scroll_bar_events (struct x_display_info *dpyinfo, Window scroll_bar) { XIEventMask mask; unsigned char *m; ptrdiff_t length; length =3D XIMaskLen (XI_LASTEVENT); mask.mask =3D m =3D alloca (length); memset (m, 0, length); mask.mask_len =3D length; "scroll_bar" in "Window scroll_bar" will be 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 Fri Nov 18 16:09:44 2022 Received: (at 59051) by debbugs.gnu.org; 18 Nov 2022 21:09:44 +0000 Received: from localhost ([127.0.0.1]:38418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow8cK-0007uh-44 for submit@debbugs.gnu.org; Fri, 18 Nov 2022 16:09:44 -0500 Received: from mx3.muc.de ([193.149.48.5]:32361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow8cH-0007uT-HL for 59051@debbugs.gnu.org; Fri, 18 Nov 2022 16:09:42 -0500 Received: (qmail 36128 invoked by uid 3782); 18 Nov 2022 22:09:34 +0100 Received: from acm.muc.de (p4fe15ae4.dip0.t-ipconnect.de [79.225.90.228]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 18 Nov 2022 22:09:33 +0100 Received: (qmail 8372 invoked by uid 1000); 18 Nov 2022 21:09:29 -0000 Date: Fri, 18 Nov 2022 21:09:29 +0000 To: Po Lu Subject: Re: bug#59051: CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type Message-ID: References: <87leopa8bd.fsf.ref@yahoo.com> <87leopa8bd.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="hmHGP0azi9/eLmj7" Content-Disposition: inline In-Reply-To: <87leopa8bd.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: 59051 Cc: 59051@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 (-) --hmHGP0azi9/eLmj7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, Po. It's been some while since you submitted this bug report, but I now have a patch for it. On Sat, Nov 05, 2022 at 20:34:46 +0800, Po Lu via CC-Mode-help wrote: > Package: cc-mode > Go to src/xterm.c in the Emacs source code. Then, type M-> and keep > pressing M-v until the beginning of the buffer is reached. Afterwards, > go to line 14458, around which will be the following function > definition: > MAYBE_UNUSED static void > xi_select_scroll_bar_events (struct x_display_info *dpyinfo, > Window scroll_bar) > { > XIEventMask mask; > unsigned char *m; > ptrdiff_t length; > length = XIMaskLen (XI_LASTEVENT); > mask.mask = m = alloca (length); > memset (m, 0, length); > mask.mask_len = length; > "scroll_bar" in "Window scroll_bar" will be fontified as a type! What happens here is there's a macro invocation with the type "struct scroll_bar" as one of the arguments. This is in function x_scroll_bar_create, and the code there looks like: struct scroll_bar *bar = ALLOCATE_PSEUDOVECTOR (struct scroll_bar, prev, PVEC_OTHER); .. This argument was enough to derail the fontification of scroll_bar throughout the buffer. Would you please do the usual with the attached patch, and let me know whether there are still problems with this bug. 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). --hmHGP0azi9/eLmj7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="diff.20221118.diff" diff -r d37a87d7240d cc-engine.el --- a/cc-engine.el Thu Nov 17 10:20:00 2022 +0000 +++ b/cc-engine.el Fri Nov 18 21:00:25 2022 +0000 @@ -10697,6 +10697,8 @@ (c-forward-syntactic-ws)) (when (and (not got-identifier) + (or backup-at-type + (not (memq context '(arglist decl)))) (or (and new-style-auto (looking-at c-auto-ops-re)) (and (or maybe-typeless backup-maybe-typeless) --hmHGP0azi9/eLmj7-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 18 19:19:23 2022 Received: (at 59051) by debbugs.gnu.org; 19 Nov 2022 00:19:23 +0000 Received: from localhost ([127.0.0.1]:38512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owBZq-0004As-PW for submit@debbugs.gnu.org; Fri, 18 Nov 2022 19:19:23 -0500 Received: from sonic315-21.consmr.mail.ne1.yahoo.com ([66.163.190.147]:42586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owBZo-0004Ad-3A for 59051@debbugs.gnu.org; Fri, 18 Nov 2022 19:19:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668817153; bh=zLSrAePCiNClGymxirfY6PWqeCzol8ixBQRm6vD4SVo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=FIju9CtvmjhCiZ3HxuT9WaW/I7mbVYaxhjwRxAT0whlMzkeZUGZqMAAC1ixlN/x7sbUG6uAfa1626M5GnaDekWXQYdPJ1c1YdpoDFIp6e3SZnQe/vKRyDD8OtQR05REzhP8/zeNepGAFsjA8KJrQQdYwBvdwk91SypLUhuZ2hPPTay//9f+OxCUSdzTznjveDjcBi0coqyrJgwEgBX9sW7FiFP9siV2m19dbSEYT+nx84sSRpLUV6lGRsYX/eysRUBI2rY0kxH/xt8OVFVp1Cc1qtpUPbdOk87dwOAdgmKzaiZEcQGCD87e+o+4qFQJCDeeyjZ8BdMbtaY85wSLnKw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668817153; bh=07fRmXz6Z/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GAhQcd29qRIiwv_fcfsgfoHkjCnWn8wdN uLCaPLqk7NvwYL1QymQBtNNGZxeOqvdGRoY8Vqdv8LbwVdcHT7ucBR1Zy24MVIMg3wL1Td9iIiV2 Ec50b7jXoR76Gz.lzPpJ_IxEq8goRHl.8qSdQKBwNS8D3EIwYv.7DFQmEelmHG5dB8MKzjoftgYb jY6DlvjnI9F5sWoNFUw1kMomWVq8nIVOfKq25oOD8.MruSQa9SmyBNtjYqQHZV5HNH73peYFfTca CIVumsxLCAe2x9CrtvnBV6mCCHrBM8NMWw_EArCS.4ldZeSDI7q0CsyQkq5SyCP2sFHiTxSf1IRe t8mQa0pgCpQ0lh.HmxadkYPStd68wSHgyRz5oPWi5SUjIhcP.heB2YYT.RpfLPORo4089jvn8DH5 DF19t2dcYdnonR5GUheQIbdnd4.Ru69JMd9lreiSpnkFApQUAsHVsgjr47aSFFOzVTUnTfjFkSUM IxehMj3jyy2HEz4neK9NLI9AyGTfwyxwako4PSSZk4QwANuM2_Rqsxd6ljGosaSBOCo2Ws_rDjaH Gc2jMnzu.chvbHTk9Zc3i2F9HAD5OX0T1GsWSVr1R4PS1migBPHh_2VWO5lXXXi4i X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sat, 19 Nov 2022 00:19:13 +0000 Received: by hermes--production-sg3-6c8895b545-lgf2t (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e142e1e5ddfa9f751eb290c4a466a56e; Sat, 19 Nov 2022 00:19:08 +0000 (UTC) From: Po Lu To: Alan Mackenzie Subject: Re: bug#59051: CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type In-Reply-To: (Alan Mackenzie's message of "Fri, 18 Nov 2022 21:09:29 +0000") References: <87leopa8bd.fsf.ref@yahoo.com> <87leopa8bd.fsf@yahoo.com> Date: Sat, 19 Nov 2022 08:19:02 +0800 Message-ID: <87bkp3dceh.fsf@yahoo.com> 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: 1516 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59051 Cc: 59051@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: > It's been some while since you submitted this bug report, but I now have > a patch for it. > > On Sat, Nov 05, 2022 at 20:34:46 +0800, Po Lu via CC-Mode-help wrote: >> Package: cc-mode > >> Go to src/xterm.c in the Emacs source code. Then, type M-> and keep >> pressing M-v until the beginning of the buffer is reached. Afterwards, >> go to line 14458, around which will be the following function >> definition: > >> MAYBE_UNUSED static void >> xi_select_scroll_bar_events (struct x_display_info *dpyinfo, >> Window scroll_bar) >> { >> XIEventMask mask; >> unsigned char *m; >> ptrdiff_t length; > >> length = XIMaskLen (XI_LASTEVENT); >> mask.mask = m = alloca (length); >> memset (m, 0, length); >> mask.mask_len = length; > >> "scroll_bar" in "Window scroll_bar" will be fontified as a type! > > What happens here is there's a macro invocation with the type "struct > scroll_bar" as one of the arguments. This is in function > x_scroll_bar_create, and the code there looks like: > > struct scroll_bar *bar = ALLOCATE_PSEUDOVECTOR (struct scroll_bar, prev, > PVEC_OTHER); > > .. This argument was enough to derail the fontification of scroll_bar > throughout the buffer. > > Would you please do the usual with the attached patch, and let me know > whether there are still problems with this bug. Thanks! This one seems to be gone now, but I haven't had a chance to thoroughly test yet. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 29 15:33:04 2022 Received: (at 59051-done) by debbugs.gnu.org; 29 Nov 2022 20:33:04 +0000 Received: from localhost ([127.0.0.1]:56163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p07Hs-0000Qd-31 for submit@debbugs.gnu.org; Tue, 29 Nov 2022 15:33:04 -0500 Received: from mx3.muc.de ([193.149.48.5]:53279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p07Hq-0000Pr-6n for 59051-done@debbugs.gnu.org; Tue, 29 Nov 2022 15:33:02 -0500 Received: (qmail 25521 invoked by uid 3782); 29 Nov 2022 21:32:55 +0100 Received: from acm.muc.de (p4fe15754.dip0.t-ipconnect.de [79.225.87.84]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 29 Nov 2022 21:32:54 +0100 Received: (qmail 21845 invoked by uid 1000); 29 Nov 2022 20:32:54 -0000 Date: Tue, 29 Nov 2022 20:32:54 +0000 To: Po Lu Subject: Re: bug#59051: CC Mode 5.35.1 (C/*l); "Window scroll_bar" fontified as type Message-ID: References: <87leopa8bd.fsf.ref@yahoo.com> <87leopa8bd.fsf@yahoo.com> <87bkp3dceh.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bkp3dceh.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: 59051-done Cc: 59051-done@debbugs.gnu.org, acm@muc.de 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 Sat, Nov 19, 2022 at 08:19:02 +0800, Po Lu wrote: > Alan Mackenzie writes: > > It's been some while since you submitted this bug report, but I now have > > a patch for it. > > On Sat, Nov 05, 2022 at 20:34:46 +0800, Po Lu via CC-Mode-help wrote: > >> Package: cc-mode > >> Go to src/xterm.c in the Emacs source code. Then, type M-> and keep > >> pressing M-v until the beginning of the buffer is reached. Afterwards, > >> go to line 14458, around which will be the following function > >> definition: > >> MAYBE_UNUSED static void > >> xi_select_scroll_bar_events (struct x_display_info *dpyinfo, > >> Window scroll_bar) > >> { > >> XIEventMask mask; > >> unsigned char *m; > >> ptrdiff_t length; > >> length = XIMaskLen (XI_LASTEVENT); > >> mask.mask = m = alloca (length); > >> memset (m, 0, length); > >> mask.mask_len = length; > >> "scroll_bar" in "Window scroll_bar" will be fontified as a type! > > What happens here is there's a macro invocation with the type "struct > > scroll_bar" as one of the arguments. This is in function > > x_scroll_bar_create, and the code there looks like: > > struct scroll_bar *bar = ALLOCATE_PSEUDOVECTOR (struct scroll_bar, prev, > > PVEC_OTHER); > > .. This argument was enough to derail the fontification of scroll_bar > > throughout the buffer. > > Would you please do the usual with the attached patch, and let me know > > whether there are still problems with this bug. Thanks! > This one seems to be gone now, but I haven't had a chance to thoroughly > test yet. I've convinced myself the patch is correct, so I've committed it and I'm closing the bug. If the bug isn't quite fixed, we can reopen it. > Thanks. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Aug 16 21:58:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Dec 2022 12:24:06 +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