From unknown Sat Sep 06 05:55:32 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#63322 <63322@debbugs.gnu.org> To: bug#63322 <63322@debbugs.gnu.org> Subject: Status: CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c Reply-To: bug#63322 <63322@debbugs.gnu.org> Date: Sat, 06 Sep 2025 12:55:32 +0000 retitle 63322 CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c reassign 63322 cc-mode submitter 63322 Po Lu severity 63322 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 04:11:45 2023 Received: (at submit) by debbugs.gnu.org; 6 May 2023 08:11:46 +0000 Received: from localhost ([127.0.0.1]:59333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvD17-0005An-Am for submit@debbugs.gnu.org; Sat, 06 May 2023 04:11:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:44862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvD15-0005AV-BN for submit@debbugs.gnu.org; Sat, 06 May 2023 04:11:44 -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 1pvD14-0006e2-KV for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 04:11:43 -0400 Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvD12-000708-BP for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 04:11:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683360697; bh=x6gYN4mdDutD/bsxN3b4EK+BCcspc5nQWvk7T3AJNFU=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=eVkmHkKkplXbLiBuSpJPKUEuEPHNBSdd/eUat7Evir5MRI0/xt7uoeiCatsk/kuTxjCpiS5yN9EPo1IHlJRM50buLzHsEwAvuHCSn7QPpEtTSK05OR7/+w88WlG8rf+L7LsezS3GGLvb3aS1OvYMUJU7XL4UGle9WtTtRyCG4c0VRv6QFr3OM/A/h18qhLa3EffjNOEm8Z+yE2CxELfvkqQhQSvAxRdWPIt1Qik80QFoWdA1L32IUxbNfce3DGGXcirGmBFvDC9bb4gY8CtEX7osAA1j16/RG/Jv2J3PthM+e6vwtOVrrArnoBIaQgwS7qBOWFwBoCLxeZKF0EVH9Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683360697; bh=8wTLzInpiMcDde51hfjuxRvJgQg4oirFlg7gbpJL1fl=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nkGduN6C6ZVZw6e1dszAHZUIEN1G3XfJtqkLGwe4Ok94jFboy3vG2M0NP6EuzlszGxw3HARxc3xGedKSkWnhw0jlXwCGNqKyV+bmB2T+b+JcuDEiHtANdRKY2C2YluAzxhVhlRwW/bRAuXNlhUgXfSUSNP+4AuF0uAuc1hE+vqAaTEfDTRrOA5gePibwCl1oouVCtHN38w8K0KdZwnCmNBynpzfqV2UGYwCjLugv4YqqPh7VtusQHvLybD4V3HQFOENKFYfDZFAzwpHrPO3iTpKrRy8fasyp0SoM5YmkBya4Yge/NzdAmqQl0nYohSx+2zDfmg+qMvdXj1RB/JZh6w== X-YMail-OSG: iQFXKGIVM1kHkcQF0RTbHC21hczPlyu0c7t5hB4WVegZtzn.Sql7HiyJe.gyi8O lAquF_kaWCna8uecP18QgR0BdSdPF_Z.UbvrAIyY.J6mWiymrqDU4YJEDz7r7fb938OWXTc3hquI 29kpB0mKvRTl4UbpWxAb8utQJzF7SurE3m0ig44bfv0AZ5_I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51OkPVNKVXeMCtAYLYTbW6kg-- X-Sonic-MF: X-Sonic-ID: 8bdddea0-98f4-47d1-a8ff-877f6ac6e6c7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 6 May 2023 08:11:37 +0000 Received: by hermes--production-sg3-6d6fb994f6-djl48 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a40f34740ae089db60655200c1a3484a; Sat, 06 May 2023 08:11:30 +0000 (UTC) From: Po Lu To: bug-gnu-emacs@gnu.org Subject: CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c X-Debbugs-Package: cc-mode Date: Sat, 06 May 2023 16:11:25 +0800 Message-ID: <87v8h5khg2.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <87v8h5khg2.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 4790 Received-SPF: pass client-ip=66.163.189.82; envelope-from=luangruo@yahoo.com; helo=sonic306-20.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, T_SCC_BODY_TEXT_LINE=-0.01 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/sfnt.c in the feature/android branch of Emacs. Type M-s o ^sfnt RET, then visit each of the following function definitions: sfnt_scale_by_freedom_vector sfnt_interpret_iup_1 sfnt_interpret_font_program sfnt_interpret_control_value_program sfnt_interpret_simple_glyph sfnt_interpret_compound_glyph In each of these definitions, the identifier name is not fontified as a function! Emacs : GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu) of 2023-04-29 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]+[ ]*\\)*\\)" ) From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 06:55:39 2023 Received: (at 63322) by debbugs.gnu.org; 10 May 2023 10:55:39 +0000 Received: from localhost ([127.0.0.1]:45336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwhTv-0004HW-CG for submit@debbugs.gnu.org; Wed, 10 May 2023 06:55:39 -0400 Received: from mx3.muc.de ([193.149.48.5]:57287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwhTs-0004HI-JI for 63322@debbugs.gnu.org; Wed, 10 May 2023 06:55:37 -0400 Received: (qmail 77147 invoked by uid 3782); 10 May 2023 12:55:30 +0200 Received: from acm.muc.de (pd953a7d4.dip0.t-ipconnect.de [217.83.167.212]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 10 May 2023 12:55:29 +0200 Received: (qmail 4906 invoked by uid 1000); 10 May 2023 10:55:29 -0000 Date: Wed, 10 May 2023 10:55:29 +0000 To: Po Lu Subject: Re: bug#63322: CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c Message-ID: References: <87v8h5khg2.fsf.ref@yahoo.com> <87v8h5khg2.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="kRIQpsfFi957Uh+7" Content-Disposition: inline In-Reply-To: <87v8h5khg2.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: 63322 Cc: 63322@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 (-) --kRIQpsfFi957Uh+7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, Po. Thanks for the bug report. On Sat, May 06, 2023 at 16:11:25 +0800, Po Lu via CC-Mode-help wrote: > Package: cc-mode > Go to src/sfnt.c in the feature/android branch of Emacs. > Type M-s o ^sfnt RET, then visit each of the following function > definitions: > sfnt_scale_by_freedom_vector > sfnt_interpret_iup_1 > sfnt_interpret_font_program > sfnt_interpret_control_value_program > sfnt_interpret_simple_glyph > sfnt_interpret_compound_glyph > In each of these definitions, the identifier name is not fontified as a > function! Yes. There were actually two distinct problems here, one trivial to solve and the other difficult. For most of these function names, you just need to add the macro name "TEST_STATIC" to c-noise-macro-names, as is done in .dir-locals for some other names, and is explained fully in the chapter "Noise Macros" in the CC Mode manual. For the other two function names, the problem was that they followed a large chunk of CPP macros, bigger than a search limit for one of CC Mode's backward searches. The fix was to check for this possibility and handle it. Would you please do the usual with the enclosed patch (which should apply cleanly to both the emacs-29 branch and master), and let me know how well it works. Thanks! > Emacs : GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu) > of 2023-04-29 > 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). --kRIQpsfFi957Uh+7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="diff.20230510.diff" diff -r 3d663572d4bf cc-engine.el --- a/cc-engine.el Wed May 03 09:45:37 2023 +0000 +++ b/cc-engine.el Wed May 10 10:37:06 2023 +0000 @@ -6263,6 +6263,9 @@ ;; prefix". The declaration prefix is the earlier of `cfd-prop-match' and ;; `cfd-re-match'. `cfd-match-pos' is set to the decl prefix. ;; + ;; The variables which this macro should set for `c-find-decl-spots' are + ;; `cfd-match-pos' and `cfd-continue-pos'. + ;; ;; This macro might do hidden buffer changes. '(progn @@ -6615,11 +6618,17 @@ ;; and so we can continue the search from this point. If we ;; didn't hit `c-find-decl-syntactic-pos' then we're now in ;; the right spot to begin searching anyway. - (if (and (eq (point) c-find-decl-syntactic-pos) - c-find-decl-match-pos) - (setq cfd-match-pos c-find-decl-match-pos - cfd-continue-pos syntactic-pos) - + (cond + ((and (eq (point) c-find-decl-syntactic-pos) + c-find-decl-match-pos) + (setq cfd-match-pos c-find-decl-match-pos + cfd-continue-pos syntactic-pos)) + ((save-excursion (c-beginning-of-macro)) + ;; The `c-backward-syntactic-ws' ~40 lines up failed to find non + ;; syntactic-ws and hit its limit, leaving us in a macro. + (setq cfd-match-pos cfd-start-pos + cfd-continue-pos cfd-start-pos)) + (t (setq c-find-decl-syntactic-pos syntactic-pos) (when (if (bobp) @@ -6637,7 +6646,7 @@ (c-find-decl-prefix-search)) ; sets cfd-continue-pos (setq c-find-decl-match-pos (and (< cfd-match-pos cfd-start-pos) - cfd-match-pos))))) ; end of `cond' + cfd-match-pos)))))) ; end of `cond' ;; Advance `cfd-continue-pos' if it's before the start position. ;; The closest continue position that might have effect at or diff -r 3d663572d4bf cc-mode.el --- a/cc-mode.el Wed May 03 09:45:37 2023 +0000 +++ b/cc-mode.el Wed May 10 10:37:06 2023 +0000 @@ -2425,8 +2425,6 @@ (setq pseudo (c-cheap-inside-bracelist-p (c-parse-state))))))) (goto-char pseudo)) t) - (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? --kRIQpsfFi957Uh+7-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 23:18:25 2023 Received: (at 63322) by debbugs.gnu.org; 12 May 2023 03:18:26 +0000 Received: from localhost ([127.0.0.1]:53703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxJIX-0001m0-LW for submit@debbugs.gnu.org; Thu, 11 May 2023 23:18:25 -0400 Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:42772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxJIV-0001lm-95 for 63322@debbugs.gnu.org; Thu, 11 May 2023 23:18:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683861497; bh=D+5w9s4Rfj+Psg/YkkBgDvi24ZUnYktKCwjeeBaWn0o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=mRfTT9mt1rNNCx2nOjFIM1mrpDZ/9+PItbPP2ZnpngzbAo0pR1Yik7ZcBkzCJ6PvyHdXTePZtcURe8IrgjEM/FT2G8d7apagmRD1Zo3siG8cYKrAGIICIlBMWeBayT4MrbPSNH3FJ39rqwRIDWW2LSBW9X27eJL1hEZ94xwagNSQj60B2LUZbmEzSb6upvCi5hYUOjIleJHFlzN+NMFG9l+syUa6LOpswJHGT5XNPdCzVJcOhvqkVtBL7u0YQCip7bKvKgXeZTUoPaXjzBXOmJbmbBBTuVbQRW0756YpC9GWEGhuIf0lKjHtluDAllkrnjGb5fTvQ7/BjFcjIsgPVw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683861497; bh=GgXRFJmwfXJaTNoWS51X7qI6jahwFRr4sBPk+hNdVMH=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Q+UgLvesUIbCK1KdYrkXBMKC3I/h9O5QMQyrX8c/B09o35fMEBZOtvb5iU3JK7nxQmhjdn1DTBEIIlZxOYTiZdowz347uoz5dBszqnMbXozy37jByrRf6nEBnAWC4NdW5zudATyuY3+uTZG3rdhiHX3BJSaNbpNuzOYCEqqT227EsFJLZE4BdOViPdEjG6M4qeyfq1rLD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kqBlQ3OIPcq.QI9cH.lnB8Xh6jhZO.wrQ0XOxXEo3JblmYW9AR jS0nBR9FZLT2s8Mcv7R3q.hDV26g_pRDxc14eGullGdNBDT9jshAmO1XStVeHmmNFDOLQw4DyPns z42SL8NquIljhj6HJs6tbnn3H3sCRxjNUmBSBBBf_9JK8kOC6MvUHLOpDXwc._PvATT.tuKRiHUT Sk8_dd37jxHumhNCtN9CdZbpbb5ngBOr3UvpgQEl0sepKGqND2qzk.KT.tG45CGE1k.EJfPzGblL 7TCE0Dz9NgKvggUwK.VhIDZ1RApRLWqgiaQ.pLU.CA52frW4E29GxOOjjt5YqSkgr.D0- X-Sonic-MF: X-Sonic-ID: bb59610d-0c6c-4119-8352-ade1aaf2c31a Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Fri, 12 May 2023 03:18:17 +0000 Received: by hermes--production-sg3-748897c457-xnp8x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2ce4f1ea38c144e7d623df9f05139158; Fri, 12 May 2023 03:18:11 +0000 (UTC) From: Po Lu To: Alan Mackenzie Subject: Re: bug#63322: CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c In-Reply-To: (Alan Mackenzie's message of "Wed, 10 May 2023 10:55:29 +0000") References: <87v8h5khg2.fsf.ref@yahoo.com> <87v8h5khg2.fsf@yahoo.com> Date: Fri, 12 May 2023 11:18:07 +0800 Message-ID: <87wn1e9r0w.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21471 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1378 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63322 Cc: 63322@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. > > Thanks for the bug report. > > On Sat, May 06, 2023 at 16:11:25 +0800, Po Lu via CC-Mode-help wrote: >> Package: cc-mode > >> Go to src/sfnt.c in the feature/android branch of Emacs. >> Type M-s o ^sfnt RET, then visit each of the following function >> definitions: > >> sfnt_scale_by_freedom_vector >> sfnt_interpret_iup_1 >> sfnt_interpret_font_program >> sfnt_interpret_control_value_program >> sfnt_interpret_simple_glyph >> sfnt_interpret_compound_glyph > >> In each of these definitions, the identifier name is not fontified as a >> function! > > Yes. There were actually two distinct problems here, one trivial to > solve and the other difficult. > > For most of these function names, you just need to add the macro name > "TEST_STATIC" to c-noise-macro-names, as is done in .dir-locals for some > other names, and is explained fully in the chapter "Noise Macros" in the > CC Mode manual. > > For the other two function names, the problem was that they followed a > large chunk of CPP macros, bigger than a search limit for one of CC > Mode's backward searches. The fix was to check for this possibility and > handle it. > > Would you please do the usual with the enclosed patch (which should > apply cleanly to both the emacs-29 branch and master), and let me know > how well it works. Thanks! It works, thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri May 12 06:48:49 2023 Received: (at 63322-done) by debbugs.gnu.org; 12 May 2023 10:48:49 +0000 Received: from localhost ([127.0.0.1]:54147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxQKP-0006BY-0d for submit@debbugs.gnu.org; Fri, 12 May 2023 06:48:49 -0400 Received: from mx3.muc.de ([193.149.48.5]:30428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxQKN-0006BF-Ay for 63322-done@debbugs.gnu.org; Fri, 12 May 2023 06:48:48 -0400 Received: (qmail 72349 invoked by uid 3782); 12 May 2023 12:48:40 +0200 Received: from acm.muc.de (pd953a6d2.dip0.t-ipconnect.de [217.83.166.210]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 12 May 2023 12:48:40 +0200 Received: (qmail 12652 invoked by uid 1000); 12 May 2023 10:48:39 -0000 Date: Fri, 12 May 2023 10:48:39 +0000 To: Po Lu Subject: Re: bug#63322: CC Mode 5.35.2 (C/*l); Various problems fontifying sfnt.c Message-ID: References: <87v8h5khg2.fsf.ref@yahoo.com> <87v8h5khg2.fsf@yahoo.com> <87wn1e9r0w.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wn1e9r0w.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: 63322-done Cc: acm@muc.de, 63322-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 Fri, May 12, 2023 at 11:18:07 +0800, Po Lu wrote: > Alan Mackenzie writes: [ .... ] > > Would you please do the usual with the enclosed patch (which should > > apply cleanly to both the emacs-29 branch and master), and let me > > know how well it works. Thanks! > It works, thanks. Thanks! I've committed the patch to the master branch, and I'm closing the bug with this post. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Sep 06 05:55:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Jun 2023 11: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