X-Loop: help-debbugs@HIDDEN Subject: bug#64567: 29.0.92; c-ts-mode fails to parse syslogger.c of postgres source Resent-From: Yang Yingchao <yang.yingchao@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 11 Jul 2023 00:48:02 +0000 Resent-Message-ID: <handler.64567.B.16890364441086 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 64567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 64567 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Reply-To: yang.yingchao@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16890364441086 (code B ref -1); Tue, 11 Jul 2023 00:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2023 00:47:24 +0000 Received: from localhost ([127.0.0.1]:49422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qJ1XH-0000HR-VS for submit <at> debbugs.gnu.org; Mon, 10 Jul 2023 20:47:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:52494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <yang.yingchao@HIDDEN>) id 1qJ1XC-0000HF-HX for submit <at> debbugs.gnu.org; Mon, 10 Jul 2023 20:47:23 -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 <yang.yingchao@HIDDEN>) id 1qJ1XC-0006oW-AV for bug-gnu-emacs@HIDDEN; Mon, 10 Jul 2023 20:47:18 -0400 Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <yang.yingchao@HIDDEN>) id 1qJ1X9-0000Ow-4j for bug-gnu-emacs@HIDDEN; Mon, 10 Jul 2023 20:47:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1689036426; bh=7b1Ofl1PWX9IPJ3ZDjH+FsQgZqvMUHbTu02IkNywcG0=; h=From:To:Subject:Date:References:Reply-To:In-reply-to; b=p3d2vOqwwFzXUMTGQ36xmDBjCtjtPKMxax2BGMmlHkd/i515ExpbAr31FFdNhhVC/ 7Br9N9IWxodAW1ahJWw7w7j9GXOzLQjPrZYtCz+oKUCX7vXQZauh7WGJ95yp8cry9h LrVauoQ0KamlNwo+9y+7pwiiBYw+rcKKaoIli5bA= Received: from tbook ([60.26.148.4]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 7ECABE41; Tue, 11 Jul 2023 08:31:44 +0800 X-QQ-mid: xmsmtpt1689035504t9qvi4sgg Message-ID: <tencent_06FD0A373E8DA4668F42F9DBC8A00422B709@HIDDEN> X-QQ-XMAILINFO: Nfm/+M6ONQ57R7wXNTMX8ceN/cUBGYez7YTiJup32hh1JVantkYs1xTqmI0xbi Z2V5rOqbZiutgUiA+N2d5Z2Uw9rujepFP91jb90cUfpQz1GPjQQSJ8OLgc5JgHK0IzxapfIq0ttd TQZtKAQ2690N8UV8xmj6lLLI8zP6FlNeN2mfau6qZqXqUvjP1Y0QZLNMVyfFsjOtRybJW6Q9jn1c LxjC34ereFUEfIcQaavyt7PN6kcHMPvViWxcbE9KnPb30KnJpfurlVXL4Th210+shuM+92FUNIl+ FkMHOpfSbmY/+aiQskQeoEfRJzBRMLmvITxjS9dy9fgFVonie/mFzwP2Cpxte251+spsi7SvStBX eBmFRvCMR8Dr5aAMmKncAt6aJOj8xbpYpi26eLNrt/jeK733aSf3ZAzIX3rpCN/53zj0eMa5j9qP RY+13PnZzCYBaE5FzDcJxcNoYFln3VdnWnLeR8F989yAqJdm/lw/tO5XqROMmgR3n3vAfl1Osi2F YOxzbd/k41JoszIrH/xtixcu8ClOhsycSofx1BelBrT/Gqii5/DDlTKh++UcECEd8AbBdAeXZAOb 1myLdNxzk6aqe4jqcA7TDssMweTgyWDjwFgBqT2XLmo+RKWeWR4r0KhzqlOfwF1N22yeFr8lHYzj UTfGovJYbovFhhkmLuIRE8/oQsQGvqNzKkmJaSZ85lJXFOZOUWb302FTcDdMlaB521v33lBPwXdK ImPl5C9/k77NOTJL3z/mNp+VWZs02XhCHKzmCflRNUvmhyeuO5d4J2IgRWKyImGt0325QO7I0bOF qAGGWdUUqPGgeD0lCKjz4oGj5+JlxTzwEEJpkcVuPLK6a/k2jYFny09eq7n43bJKurhU3D5S628/ WebVCKtKwkB6r+SQE4eJXb1e/ffjhDHxJQTJgVbd9+RgRxk5fhbV7i9Sl951uKfe3uXzZfhkkhNX Ob4FksDMk= X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= From: Yang Yingchao <yang.yingchao@HIDDEN> Date: Tue, 11 Jul 2023 08:30:51 +0800 References: <87r0pf1eal.fsf@HIDDEN> User-agent: mu4e 1.10.4; emacs 29.0.92 In-reply-to: <87r0pf1eal.fsf@HIDDEN> X-OQ-MSGID: <87pm4z1e7b.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=162.62.57.64; envelope-from=yang.yingchao@HIDDEN; helo=out162-62-57-64.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 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, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) --=-=-= Content-Type: text/plain Content-Disposition: inline 1. get source file from <https://github.com/postgres/postgres/blob/master/src/backend/postmaster/syslogger.c> 1. open it, and move to line 567, then we can see function `SysLogger_Start(void)` is not highlighted properly. `treesit-explore-mode` shows some error too: ``` (ERROR type: (primitive_type) (function_declarator declarator: (identifier) parameters: (parameter_list ( (parameter_declaration type: (primitive_type)) ))) ``` And when cusor is inside this function, and `treesit-beginning-of-defun` will move cusor to `SysLoggerMain()` which is actully the function before `SysLogger_Start()`. In GNU Emacs 29.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-11 built on tbook Repository revision: 419b4d44914701cedf308df58c3e5789715c87e7 Repository branch: HEAD System Description: Gentoo Linux Configured using: 'configure 'CFLAGS=-O2 -march=native -pipe -g' LDFLAGS= --with-xml2 --with-json --with-modules --without-pop --without-imagemagick --with-native-compilation --with-pgtk --with-xft --with-harfbuzz --with-tree-sitter --without-x --without-ns' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: zh_CN.UTF8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: C/* Minor modes in effect: treesit-explore-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug mail-extr message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader c-ts-mode c-ts-common treesit vc-git diff-mode easy-mmode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode cl-loaddefs cl-lib bytecomp byte-compile china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 456295 34678) (symbols 48 9761 0) (strings 32 44677 2133) (string-bytes 1 1728443) (vectors 16 41351) (vector-slots 8 598570 44421) (floats 8 58 41) (intervals 56 38142 182) (buffers 984 14)) --=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: yang.yingchao@HIDDEN Subject: bug#64567: Acknowledgement (29.0.92; c-ts-mode fails to parse syslogger.c of postgres source) Message-ID: <handler.64567.B.16890364441086.ack <at> debbugs.gnu.org> References: <tencent_06FD0A373E8DA4668F42F9DBC8A00422B709@HIDDEN> X-Gnu-PR-Message: ack 64567 X-Gnu-PR-Package: emacs Reply-To: 64567 <at> debbugs.gnu.org Date: Tue, 11 Jul 2023 00:48:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 64567 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 64567: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64567 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 11 Jul 2023 11:34:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 11 07:34:32 2023 Received: from localhost ([127.0.0.1]:49848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qJBdX-0005F0-Qh for submit <at> debbugs.gnu.org; Tue, 11 Jul 2023 07:34:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qJBdV-0005Ej-FF for control <at> debbugs.gnu.org; Tue, 11 Jul 2023 07:34:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qJBdQ-00087O-94 for control <at> debbugs.gnu.org; Tue, 11 Jul 2023 07:34:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=X7HKaAIgD4OQAtchpnEegVZ1efIbjxihsTRT+xdlYSA=; b=deMBXwf1XpvD BINUNDxwHdLStCtqHWmV3jKjr2cVrtRLSmc2fV8I4sIHNAaGzvOjO/Qjgj4lRGN5yLRIs0g+GhRN8 Rgxjsj/FLAk4NBq7NLSTynQ+dmVdQ91Teq5qS3Dq2HV54RyLvDtnLYekBDag1GOJTNLX82CoV/TzE PEnBIzWC7HgKKIyxnK5H4IyBhh+2DKAJoHc11ps0mjjsRGmMXoHwj78FkHr8Ip30DOjO6wpiQ4Uj2 /u38xIL70USwHuFNeohomDMCet/QUsQiI41GjYKjZN9FmgSHgB3eyrm2H2bpVI/eA2Ntc/wmr2S+b jX7ExmfntGPcw5y7+DwLOw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qJBdP-0004DZ-PG for control <at> debbugs.gnu.org; Tue, 11 Jul 2023 07:34:24 -0400 Date: Tue, 11 Jul 2023 14:34:36 +0300 Message-Id: <831qhe8ywj.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: control <at> debbugs.gnu.org In-Reply-To: <tencent_D14E05EEB71D0AA33FD5A4AE8E14F83BC809@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#64568: 29.0.92; c-ts-mode fails to parse syslogger.c of postgres source References: <tencent_D14E05EEB71D0AA33FD5A4AE8E14F83BC809@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) merge 64568 64567 thanks
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.