From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 15:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65182@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169159470111792 (code B ref -1); Wed, 09 Aug 2023 15:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Aug 2023 15:25:01 +0000 Received: from localhost ([127.0.0.1]:40344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTl3U-000347-Hq for submit@debbugs.gnu.org; Wed, 09 Aug 2023 11:25:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTl3S-00033r-He for submit@debbugs.gnu.org; Wed, 09 Aug 2023 11:24:59 -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 1qTl3N-0005Lo-5U for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 11:24:53 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTl3I-00027R-RD for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 11:24:52 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3175d5ca8dbso5293595f8f.2 for ; Wed, 09 Aug 2023 08:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691594687; x=1692199487; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=TX5vzowzjVHn7DKyZBC2uo8rS1AunpdQWj1CkN3lbvE=; b=QME3JruZ3WlLDCDscRXJeAwKqefxaqmFQS3ecOeRRdr1gjlBIcCRJmzjTnh8QIYRQB FYeCto6XTYJibXyM4B/ZwnVopzndoiqhfKlrbXOw+cQsd0uE1ISDRCTWx3v4inorhwgK CU76RftG9U0NVlahWo99NZt6ZBMhQ4wHUTdxaZPlqfOi3qDHswilSTTqGGXu0IZeUjkz pcMzAELDDA42ndw+e1wRlXDnBpq9ztAf575RVl1FOLm6RyxDvF3TezHLa2HEGaacBrw2 VXhvdVt5Oo5PZ7nZouwkcLmPEMq2cVksRFFfQf1I3Ybs9aePHd4LFE4X4bP6khPY7cuh pZ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691594687; x=1692199487; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TX5vzowzjVHn7DKyZBC2uo8rS1AunpdQWj1CkN3lbvE=; b=ECrlwfLOFf8YZCFww96+0+7aA3ZK0eVTr/3S8S5hSRRRJ14gi/+mftcle4Adywmcfo 2P6uo77RyGkpPkk4tP4zvFhK3b5O+oFd+F3EKnUQYLtEcyRtZ0Lz55aJTY60IbJvcUsU PwD5oyVkcdOInrQ5pUxiUECW1TB++xQ6bGPyN+nnkiz2HcLjg+HK2XDODLP6IH3TJ9Y1 C3TzKO2Dpt7Yoh87QfO2ec2htGlUeJO3hOC8UgoaYKxlnZe/DapL2N5mqONV8Av/5RF4 nDV19AM60FX+WS5yJvzliSOcTsuvXeVQ5FDMTdpsqUAEWWTY71t/s+MEtXjM7+8fHmnR oT4g== X-Gm-Message-State: AOJu0YyrBrKEyaNYmqcrpkeO3ayNQ5U1bd+BJONzLgzSLi8faU4cWKRr PnuztM+Cy5GfYAoMZrcu/P+9GGiGvBI= X-Google-Smtp-Source: AGHT+IEoQ2EEqoXamQEX0uJc38m81+MxN2k6yS12irqRMml/TpkPtO5RLCNo3EDkTPq3WFvRIiLrIg== X-Received: by 2002:adf:e651:0:b0:317:6f5b:2fb7 with SMTP id b17-20020adfe651000000b003176f5b2fb7mr2110886wrn.57.1691594686580; Wed, 09 Aug 2023 08:24:46 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:7df8:d74c:1e19:ef48]) by smtp.gmail.com with ESMTPSA id e9-20020a05600c218900b003fe195cecb3sm2282344wme.38.2023.08.09.08.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 08:24:45 -0700 (PDT) From: Robert Pluim Date: Wed, 09 Aug 2023 17:24:44 +0200 Message-ID: <878rak8chv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=rpluim@gmail.com; helo=mail-wr1-x435.google.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: 1.0 (+) 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: -0.0 (/) >From an emacs-29 checkout: src/emacs -Q src/process.c M-g g 6025 RET TAB ; nothing happens M-x c-ts-mode TAB ; the '{' moves left two spaces The code around there looks like this: #ifdef HAVE_GNUTLS /* If we have an incompletely set up TLS connection, then defer the sentinel signaling until later. */ if (NILP (p->gnutls_boot_parameters) && !p->gnutls_p) #endif { <=3D line 6025 pset_status (p, Qrun); /* Execute the sentinel here. If we had relied on status_notify to do it later, it will read input from the process before calling the sentinel. */ exec_sentinel (proc, build_string ("open\n")); } I=CA=BCd tell you what my libtree-sitter-c version was if I knew how to get that information. I installed it on July 28th (I don=CA=BCt think this is a duplicate of bug#65006, the patch there does not affect this behaviour) In GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-08-07 built on rltb Repository revision: ef8838c3a5f041769f72758b831eb3fa7a130fb9 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Debian GNU/Linux 12 (bookworm) Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Pluim , Yuan Fu Cc: 65182@debbugs.gnu.org Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.169159835718170 (code B ref 65182); Wed, 09 Aug 2023 16:26:01 +0000 Received: (at 65182) by debbugs.gnu.org; 9 Aug 2023 16:25:57 +0000 Received: from localhost ([127.0.0.1]:40387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm0T-0004iz-Fy for submit@debbugs.gnu.org; Wed, 09 Aug 2023 12:25:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm0R-0004il-RD for 65182@debbugs.gnu.org; Wed, 09 Aug 2023 12:25:56 -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 ) id 1qTm0L-0005Ry-MI; Wed, 09 Aug 2023 12:25:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=VDDwWLzp4W3fbvWwKkRNChKpwS1Q1ozENfMJZBeoENM=; b=mHjV91OqAnaHArGCqrDE 9mefzjBphApiHNklLiyaZvejIW8M9RyIPEno93Y6SlrtbIdv9U5VP9PibXeXZjuo/7OUtLlgBZau+ DrA13zL5jHe4+99jh40jvOs4vvnqBzqiaTCue5SVAQ/YevNh+5MFZR/VXKze4GVJt/kRTyv6DSnm2 oKic42HMdH6btQEu8rhIRVwfDxSszstzWx894YPw2LcyZfl6OvJ9OXjNiGAKCsadiFCrPShfqNtKP +2PIWnNmWojkV1+ISinBUrxNV3IfNHNyahGGPCarw2iwcXKcP0ahQzjexd0bsSdv1v8J6vroFB3+7 EtSdE0xfkRJBmQ==; Date: Wed, 09 Aug 2023 19:26:10 +0300 Message-Id: <83a5v0kwrh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <878rak8chv.fsf@gmail.com> (message from Robert Pluim on Wed, 09 Aug 2023 17:24:44 +0200) References: <878rak8chv.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Robert Pluim > Date: Wed, 09 Aug 2023 17:24:44 +0200 > > > >From an emacs-29 checkout: > > src/emacs -Q src/process.c > M-g g 6025 RET > TAB ; nothing happens > M-x c-ts-mode > TAB ; the '{' moves left two spaces > > The code around there looks like this: > > #ifdef HAVE_GNUTLS > /* If we have an incompletely set up TLS connection, > then defer the sentinel signaling until > later. */ > if (NILP (p->gnutls_boot_parameters) > && !p->gnutls_p) > #endif > { <= line 6025 > pset_status (p, Qrun); > /* Execute the sentinel here. If we had relied on > status_notify to do it later, it will read input > from the process before calling the sentinel. */ > exec_sentinel (proc, build_string ("open\n")); > } > > Iʼd tell you what my libtree-sitter-c version was if I knew how to get > that information. I installed it on July 28th > > (I donʼt think this is a duplicate of bug#65006, the patch there does > not affect this behaviour) It's most probably because of the preprocessor mess around the line. From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 65182@debbugs.gnu.org, Yuan Fu Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.169159865518782 (code B ref 65182); Wed, 09 Aug 2023 16:31:02 +0000 Received: (at 65182) by debbugs.gnu.org; 9 Aug 2023 16:30:55 +0000 Received: from localhost ([127.0.0.1]:40399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm5H-0004ss-I1 for submit@debbugs.gnu.org; Wed, 09 Aug 2023 12:30:55 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:50646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm5F-0004se-9a for 65182@debbugs.gnu.org; Wed, 09 Aug 2023 12:30:53 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so58773755e9.1 for <65182@debbugs.gnu.org>; Wed, 09 Aug 2023 09:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691598647; x=1692203447; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xmG1HZ5tvstM1FuZgaFcynwGt6nUB0leSlwsazzaujM=; b=oL+T2GsR223e+YOAHTn84twFAT8II6TcUa2W+hc3iHIumGWW+vdouq+zHrXDa4nyoM hVnzk5OUg6EsBNLXyxxegRC5g4vi8UUjJjBB9J/aSiMObqW4cex7x0x8VB8BVAqcuo0c 5ZFH3frk2pHRtu1ZEvS7X+TNXHse8gvRKdddyhbi0cFl/OnccajCBXauDkPx2l6p99Mx j2v6xwWAWBzG+ILqqRGuBojnO2a7DZubjV/9FBJVuT6eQAYnM4UDFYLN0zByjlKt0jMQ wyPYKRx2q0M/prG1ncNi5TiTcn8L8R7NtF4jd8nrXs92K7zh0O06PEyEaUNRC1a4TzCD AhHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691598647; x=1692203447; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xmG1HZ5tvstM1FuZgaFcynwGt6nUB0leSlwsazzaujM=; b=W3t02OEp4INAL6N5lVjrzBPNnXMFpCgjngc1wH49Clu0Y0lu6QoeoYxw/Gc2iSRlk/ Zq47Mzp4sNlM2VhlAN5Xa6I5idLTSki0UybnVU7r9pDIjqgnVuzNqhEZYKTxJA/9yHF0 f121HYEGQdKp2UjxRVpS9xLN0gMs1jRXX6CLYUnhAiQr2LhecdeOOZNrxjkjC/uDeTw7 y1GIFSGUTP3bgeoPfEbCpJvKWXDELxNr2AVtSXGz8gio3tlIPZV1WEza+giQ9BKTFNkO y6rMXsldjfqCVyficw1lCJW7Twytue+hDN+ROk52ekNVVp7J8fxaBlH4GOzRoq9IkBzc Tk0A== X-Gm-Message-State: AOJu0YwLFnd/yToh79bwLM2RoDyxU033ywmvyJYZ6LQYxi4ubLc8eaAU UUV6Oa1iNbLhcw3x3gXgPKTowgL9buU= X-Google-Smtp-Source: AGHT+IF4R3X0IbjKfYMk3JiyKMSmwi7ePHheTtJbrydTHyVuyeotAJsT4RP/0AtfEZdDNm2CM+fu5w== X-Received: by 2002:a5d:464c:0:b0:315:998d:6d25 with SMTP id j12-20020a5d464c000000b00315998d6d25mr2124756wrs.1.1691598647059; Wed, 09 Aug 2023 09:30:47 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:7df8:d74c:1e19:ef48]) by smtp.gmail.com with ESMTPSA id z9-20020a5d4c89000000b00317f3fd21b7sm7032393wrs.80.2023.08.09.09.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:30:45 -0700 (PDT) From: Robert Pluim In-Reply-To: <83a5v0kwrh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Aug 2023 19:26:10 +0300") References: <878rak8chv.fsf@gmail.com> <83a5v0kwrh.fsf@gnu.org> Date: Wed, 09 Aug 2023 18:30:44 +0200 Message-ID: <87zg306uvf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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 (-) >>>>> On Wed, 09 Aug 2023 19:26:10 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Date: Wed, 09 Aug 2023 17:24:44 +0200 >>=20 >>=20 >> >From an emacs-29 checkout: >>=20 >> src/emacs -Q src/process.c >> M-g g 6025 RET >> TAB ; nothing happens >> M-x c-ts-mode >> TAB ; the '{' moves left two spaces >>=20 >> The code around there looks like this: >>=20 >> #ifdef HAVE_GNUTLS >> /* If we have an incompletely set up TLS connection, >> then defer the sentinel signaling until >> later. */ >> if (NILP (p->gnutls_boot_parameters) >> && !p->gnutls_p) >> #endif >> { <=3D line 6025 >> pset_status (p, Qrun); >> /* Execute the sentinel here. If we had relied on >> status_notify to do it later, it will read input >> from the process before calling the sentinel. */ >> exec_sentinel (proc, build_string ("open\n")); >> } >>=20 >> I=CA=BCd tell you what my libtree-sitter-c version was if I knew how= to get >> that information. I installed it on July 28th >>=20 >> (I don=CA=BCt think this is a duplicate of bug#65006, the patch ther= e does >> not affect this behaviour) Eli> It's most probably because of the preprocessor mess around the lin= e. Maybe, but c-mode works fine. Robert --=20 From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Pluim Cc: 65182@debbugs.gnu.org, casouri@gmail.com Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.169159883519110 (code B ref 65182); Wed, 09 Aug 2023 16:34:01 +0000 Received: (at 65182) by debbugs.gnu.org; 9 Aug 2023 16:33:55 +0000 Received: from localhost ([127.0.0.1]:40412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm8A-0004yA-Ob for submit@debbugs.gnu.org; Wed, 09 Aug 2023 12:33:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm88-0004xx-Q5 for 65182@debbugs.gnu.org; Wed, 09 Aug 2023 12:33:53 -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 ) id 1qTm83-00070u-FH; Wed, 09 Aug 2023 12:33:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cTF8xvCewUTLtg6UKdQ9JzGX36eQDfSaW8f8+iVfOhU=; b=pzgpNOHjXARXRtMHPBuA WzmUQN8X97F2AG/bFxd2Jvr1cruqbNZx7t5LnTYGEzro1Q6wgBNa3FJJwIov/GEY243OX7+oRZ62y IaJBWSAOt6TUu6W1tLozQu7FQEWMVWUWYDVrQCK3/U6yG8gCzItnV1IVFO9FG/3jOyRITZjm+l4fH 5IEUgxPm9PYy4yC/79KXTdMkqX3DtesF5lYtLb71Irt7yTGwvzEjcq59fnBXQ6DQ86ta7jWhIHvE0 bUvf/bvWJqo3SpVvlxbD7IeUYdsqlcTgQ44qocZpoTW/02Qnaw8cucVfJJ3oh+mNq0AU/GeLuNyYy dxuFP6zc9Q/ZCw==; Date: Wed, 09 Aug 2023 19:34:12 +0300 Message-Id: <835y5okwe3.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87zg306uvf.fsf@gmail.com> (message from Robert Pluim on Wed, 09 Aug 2023 18:30:44 +0200) References: <878rak8chv.fsf@gmail.com> <83a5v0kwrh.fsf@gnu.org> <87zg306uvf.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Robert Pluim > Cc: Yuan Fu , 65182@debbugs.gnu.org > Date: Wed, 09 Aug 2023 18:30:44 +0200 > > >>>>> On Wed, 09 Aug 2023 19:26:10 +0300, Eli Zaretskii said: > > >> From: Robert Pluim > >> Date: Wed, 09 Aug 2023 17:24:44 +0200 > >> > >> > >> >From an emacs-29 checkout: > >> > >> src/emacs -Q src/process.c > >> M-g g 6025 RET > >> TAB ; nothing happens > >> M-x c-ts-mode > >> TAB ; the '{' moves left two spaces > >> > >> The code around there looks like this: > >> > >> #ifdef HAVE_GNUTLS > >> /* If we have an incompletely set up TLS connection, > >> then defer the sentinel signaling until > >> later. */ > >> if (NILP (p->gnutls_boot_parameters) > >> && !p->gnutls_p) > >> #endif > >> { <= line 6025 > >> pset_status (p, Qrun); > >> /* Execute the sentinel here. If we had relied on > >> status_notify to do it later, it will read input > >> from the process before calling the sentinel. */ > >> exec_sentinel (proc, build_string ("open\n")); > >> } > >> > >> Iʼd tell you what my libtree-sitter-c version was if I knew how to get > >> that information. I installed it on July 28th > >> > >> (I donʼt think this is a duplicate of bug#65006, the patch there does > >> not affect this behaviour) > > Eli> It's most probably because of the preprocessor mess around the line. > > Maybe, but c-mode works fine. Sure. The problem with c-ts-mode is because the tree-sitter C parser doesn't really grok cpp directives, since they are not part of the C language grammar. We have some workarounds in some cases, but I'll let Yuan chime in about this particular one. From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 21:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 65182@debbugs.gnu.org, Robert Pluim Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.16917045749461 (code B ref 65182); Thu, 10 Aug 2023 21:57:01 +0000 Received: (at 65182) by debbugs.gnu.org; 10 Aug 2023 21:56:14 +0000 Received: from localhost ([127.0.0.1]:44197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUDdd-0002SW-Ph for submit@debbugs.gnu.org; Thu, 10 Aug 2023 17:56:14 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:42448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUDdb-0002SJ-7q for 65182@debbugs.gnu.org; Thu, 10 Aug 2023 17:56:12 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-686ba29ccb1so999534b3a.1 for <65182@debbugs.gnu.org>; Thu, 10 Aug 2023 14:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691704565; x=1692309365; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ABHOq/6EvrauJZ3cCG7JYnu5KBbie5vvNGCeDAYp+sQ=; b=ZVzO1cO44bjB9wRjh7jc4RA21Z4L/VGEHOfC9wnUa1KtAm6ifFV/GKxbP/pUk7bHOb F9T+wvSvQ9neC27yJ3035vBX6xoMuo/jUdwabj0s7j82hpfWF1j+tL+vzkRAyaJ5kQpE 5v3Fn/nohaYy5C7BnlHqW6KPIhvNe0hsBLU6unaWIlgQ9BKgFwieNHNJXuQQLOlBD+NZ qAwEud1Yo2BJiS4AZIQ0QTuWQEAzz2Lc29oebmAUjNwm10c+wBRiyzPD7hiN+0qfl2rF es5PgpEqgosIA5iAvri1i5HAPxiYsJ1F08gKIcGWaGWbehUCeDxKP4WBelX7jwv7W95Z r3QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691704565; x=1692309365; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ABHOq/6EvrauJZ3cCG7JYnu5KBbie5vvNGCeDAYp+sQ=; b=SV4F0tuuqqOu2i9qJ7rJ8FwUFhP2HM7QodIfvryLtozNjJ5VxBMnEB0On7+glLiUVa RIwQgDBLVe63+TjhXPaVmkmlDLDQ9sk1NPgf8v4vqqJHTXrCP+9B3KAvbmqRdTwXpnWT xUkzc5Gu6+GirReikc2PlVg/KhjF9oL25XrEZabQPgHmGWuSFek7rOg9Fq7OFJi1P4bP l55urMQ2ifSKJUJZuieANuJIWp94EBupFKyA6YzR/7gzaj8q+8slXB/jAKMoc4pT07sO /jlZyPmv5O362I0St7MxQ3dCqUhZc1sorfQa0W0Ee0mLmdUz4sQhbkLt/uusm6kmsQDo NIDA== X-Gm-Message-State: AOJu0YzXQL9XU0vusHYRM0+o8VmcsNUx5zkhATO6oN+dO4mObwStmT// nNYspe40Nr3+RBDY9XuHu34= X-Google-Smtp-Source: AGHT+IEXlov8Dbx0kVj/KwkORc+ghVSzFA+twdk+pYuN4svqA3/f08o0Vzeg/Oc5EMqWyz4i+8fNqw== X-Received: by 2002:a05:6a00:23c6:b0:686:5f73:4eac with SMTP id g6-20020a056a0023c600b006865f734eacmr5288954pfc.13.1691704565399; Thu, 10 Aug 2023 14:56:05 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id j18-20020aa783d2000000b00662610cf7a8sm2043987pfn.172.2023.08.10.14.56.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2023 14:56:05 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) From: Yuan Fu In-Reply-To: <835y5okwe3.fsf@gnu.org> Date: Thu, 10 Aug 2023 14:55:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7F726A8D-8EE9-4F7B-87F9-EBC0D41A11D9@gmail.com> References: <878rak8chv.fsf@gmail.com> <83a5v0kwrh.fsf@gnu.org> <87zg306uvf.fsf@gmail.com> <835y5okwe3.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: -0.0 (/) 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 (-) > On Aug 9, 2023, at 9:34 AM, Eli Zaretskii wrote: >=20 >> From: Robert Pluim >> Cc: Yuan Fu , 65182@debbugs.gnu.org >> Date: Wed, 09 Aug 2023 18:30:44 +0200 >>=20 >>>>>>> On Wed, 09 Aug 2023 19:26:10 +0300, Eli Zaretskii = said: >>=20 >>>> From: Robert Pluim >>>> Date: Wed, 09 Aug 2023 17:24:44 +0200 >>>>=20 >>>>=20 >>>>> =46rom an emacs-29 checkout: >>>>=20 >>>> src/emacs -Q src/process.c >>>> M-g g 6025 RET >>>> TAB ; nothing happens >>>> M-x c-ts-mode >>>> TAB ; the '{' moves left two spaces >>>>=20 >>>> The code around there looks like this: >>>>=20 >>>> #ifdef HAVE_GNUTLS >>>> /* If we have an incompletely set up TLS connection, >>>> then defer the sentinel signaling until >>>> later. */ >>>> if (NILP (p->gnutls_boot_parameters) >>>> && !p->gnutls_p) >>>> #endif >>>> { <=3D line 6025 >>>> pset_status (p, Qrun); >>>> /* Execute the sentinel here. If we had relied on >>>> status_notify to do it later, it will read input >>>> from the process before calling the sentinel. */ >>>> exec_sentinel (proc, build_string ("open\n")); >>>> } >>>>=20 >>>> I=CA=BCd tell you what my libtree-sitter-c version was if I knew = how to get >>>> that information. I installed it on July 28th >>>>=20 >>>> (I don=CA=BCt think this is a duplicate of bug#65006, the patch = there does >>>> not affect this behaviour) >>=20 >> Eli> It's most probably because of the preprocessor mess around = the line. >>=20 >> Maybe, but c-mode works fine. >=20 > Sure. The problem with c-ts-mode is because the tree-sitter C parser > doesn't really grok cpp directives, since they are not part of the C > language grammar. We have some workarounds in some cases, but I'll > let Yuan chime in about this particular one. It=E2=80=99s the same problem: tree-sitter grammar can=E2=80=99t = meaningfully parse directives. Whatever in the directives are severed = from the main parse tree. And to give you guys an explanation, the = bracket is outdented because the if part isn=E2=80=99t taken into = consideration, and the bracket is outdented against bracket one level = higher. else { <--------- outdented against this #ifdef HAVE_GNUTLS =20 /* If we have an incompletely set up TLS connection, then defer the sentinel signaling until later. */ if (NILP (p->gnutls_boot_parameters) <---- the if is = ignored && !p->gnutls_p) #endif { <------------- outdented pset_status (p, Qrun); /* Execute the sentinel here. If we had relied on status_notify to do it later, it will read = input from the process before calling the sentinel. = */ exec_sentinel (proc, build_string ("open\n")); } Yuan=20= From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Aug 2023 07:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: 65182@debbugs.gnu.org, rpluim@gmail.com Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.169182491318526 (code B ref 65182); Sat, 12 Aug 2023 07:22:01 +0000 Received: (at 65182) by debbugs.gnu.org; 12 Aug 2023 07:21:53 +0000 Received: from localhost ([127.0.0.1]:48632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUiwa-0004oi-JE for submit@debbugs.gnu.org; Sat, 12 Aug 2023 03:21:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUiwY-0004oW-4j for 65182@debbugs.gnu.org; Sat, 12 Aug 2023 03:21:51 -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 ) id 1qUiwS-00040v-MD; Sat, 12 Aug 2023 03:21:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HmYYTi+0eQGNymberUq2VOdjv1buD0ufKSD60BYvq4U=; b=PqmLwWx5UI58frQ03hqo qHThMZ7Y0Xv2AEMQvcbP+fQbqdBFW3dx1L4lRrQ+3mIluqQxvLuXyrn2b3mPXeMJQv5XSloVGOHKb fYNH8fKsjEKKfy9HVfY09ARkAfOeMDst3RUVvAViW7bMn6ugxehbD2f6WMTFZ0KLdobU4TEV/+2cR P0htuFLHVQSaN2FyKgAfeeOFFFsjQkfUbG12OqXba29Px1O6HFxVnJ9M1dIYj9/OgNbEmxxmz0VkR PSTvlNsX1fJxf5eIIBZEbWamtO15hSnuhEzJ3+pI2NVPe0GOV/4HyPwT5YB2z0e9JDpo1APoire6U OQzIcq+B9xoCGw==; Date: Sat, 12 Aug 2023 10:22:15 +0300 Message-Id: <83ttt4endk.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <7F726A8D-8EE9-4F7B-87F9-EBC0D41A11D9@gmail.com> (message from Yuan Fu on Thu, 10 Aug 2023 14:55:52 -0700) References: <878rak8chv.fsf@gmail.com> <83a5v0kwrh.fsf@gnu.org> <87zg306uvf.fsf@gmail.com> <835y5okwe3.fsf@gnu.org> <7F726A8D-8EE9-4F7B-87F9-EBC0D41A11D9@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) tags 65182 wontfix close 65182 thanks > From: Yuan Fu > Date: Thu, 10 Aug 2023 14:55:52 -0700 > Cc: Robert Pluim , > 65182@debbugs.gnu.org > > It’s the same problem: tree-sitter grammar can’t meaningfully parse directives. Whatever in the directives are severed from the main parse tree. And to give you guys an explanation, the bracket is outdented because the if part isn’t taken into consideration, and the bracket is outdented against bracket one level higher. > > else > { <--------- outdented against this > #ifdef HAVE_GNUTLS > /* If we have an incompletely set up TLS connection, > then defer the sentinel signaling until > later. */ > if (NILP (p->gnutls_boot_parameters) <---- the if is ignored > && !p->gnutls_p) > #endif > { <------------- outdented > pset_status (p, Qrun); > /* Execute the sentinel here. If we had relied on > status_notify to do it later, it will read input > from the process before calling the sentinel. */ > exec_sentinel (proc, build_string ("open\n")); > } I don't see this as a serious problem for Emacs (the braces could be outdented to prevent it), so I'm closing this bug. From unknown Sun Jun 22 17:15:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Sep 2023 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 65182@debbugs.gnu.org, Yuan Fu , rpluim@gmail.com Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.1693602564783 (code B ref 65182); Fri, 01 Sep 2023 21:10:02 +0000 Received: (at 65182) by debbugs.gnu.org; 1 Sep 2023 21:09:24 +0000 Received: from localhost ([127.0.0.1]:34245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcBOO-0000CT-Bv for submit@debbugs.gnu.org; Fri, 01 Sep 2023 17:09:24 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:60811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcBOM-0000C7-7o for 65182@debbugs.gnu.org; Fri, 01 Sep 2023 17:09:23 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50087d47d4dso4287762e87.1 for <65182@debbugs.gnu.org>; Fri, 01 Sep 2023 14:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693602547; x=1694207347; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NGiT1Bm73v6D/9hwuZmONS3mWZ6MGsxL+UuY/ibAqlc=; b=ULBRMKhtwgauiyH3tgy4CwNL+9VTxaYiS74VQ7K/hs1jlsD8yfRMd3OVCNxeeRVqx1 K5xedoNvdEVCbL2NiTmrElj9HKH0llFKOohngJC1cqK8WLKArlQlu9IBvMi2R9btQlkf lrRkjELd8dd4Z1N9fW7U2jh5KjxayjKhrqyk/sF7LeKaP9y6F0qlLixnasUiFrf5cFLU Hrcj+Ci4wtqyiq+2b/C4E/U6Gh4UUoNSBTcm42ANJrUNKlbUsAzWcAxy5FbbNBPMesxn JafqjF6Lnj6XVGG/5rj+X+ynWaihumEMskOI8GFmFg353kCD++cwGT2g1x/qa711z6Fa S/Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693602547; x=1694207347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NGiT1Bm73v6D/9hwuZmONS3mWZ6MGsxL+UuY/ibAqlc=; b=FnN/am/y2R2+2gpW2aw/DODUb/0u3SNc7iHPwSQWwY9yINOt81DrVZj6137OnzKSML CsxdiXQxsFfixbzoo3/Gp3lrvs52I5s+14LajrFanPwGypNGH9mGVUIeRbdtLjFCfFNR kdJcCQqEkX+Vcv40O+dz9C8LnPKejTXrwMpMHmN06obBESoBuFpA7yyJHcI02IfDu/uS REX0uCi6BBV7ANnRvhn1okElQEdZXFJxLsLpC1OHeMLMJxeyETTKUNoN2pO1bE/TZO76 rFBSF88aWCJlT8t2TRuiudkqrAyQFEYxAFugXsysU8L6xuQi4kxodintQtuv96JoeSm5 wWmg== X-Gm-Message-State: AOJu0YxkwbF1jw1WxosLaEqPWsDU+lFsMZKtSUCl++hoZizwni/esNSC 09EuKcwfdMAk98gkxlzisbt0sXUomcjT24/vajt1Tc2AJ+U= X-Google-Smtp-Source: AGHT+IEdpH7SKwQf2YLz5zVscb61WVoBOuV49UT3u3c//iKzSgG08L78qusJhrv6791BkyGHIq/2q+4cMYMhe6TShM8= X-Received: by 2002:a05:6512:31c8:b0:500:7a23:720b with SMTP id j8-20020a05651231c800b005007a23720bmr2926122lfe.55.1693602546640; Fri, 01 Sep 2023 14:09:06 -0700 (PDT) MIME-Version: 1.0 References: <878rak8chv.fsf@gmail.com> <83a5v0kwrh.fsf@gnu.org> <87zg306uvf.fsf@gmail.com> <835y5okwe3.fsf@gnu.org> <7F726A8D-8EE9-4F7B-87F9-EBC0D41A11D9@gmail.com> <83ttt4endk.fsf@gnu.org> In-Reply-To: <83ttt4endk.fsf@gnu.org> From: Stefan Kangas Date: Fri, 1 Sep 2023 23:08:55 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) tags 65182 wontfix close 65182 thanks Eli Zaretskii writes > tags 65182 wontfix > close 65182 > thanks [...] > I don't see this as a serious problem for Emacs (the braces could be > outdented to prevent it), so I'm closing this bug. This was accidentally left open, maybe you missed the Bcc. Now fixed.