From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace Date: Sat, 12 Aug 2023 10:22:15 +0300 Message-ID: <83ttt4endk.fsf@gnu.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17586"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65182@debbugs.gnu.org, rpluim@gmail.com To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 09:22:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qUix0-0004LI-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 09:22:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUiwl-00043i-Ou; Sat, 12 Aug 2023 03:22:03 -0400 Original-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 1qUiwk-00043V-7W for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:22:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUiwj-00041a-VH for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUiwj-0004p6-QZ for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:22:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 65182-submit@debbugs.gnu.org id=B65182.169182491318526 (code B ref 65182); Sat, 12 Aug 2023 07:22:01 +0000 Original-Received: (at 65182) by debbugs.gnu.org; 12 Aug 2023 07:21:53 +0000 Original-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 Original-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 Original-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==; In-Reply-To: <7F726A8D-8EE9-4F7B-87F9-EBC0D41A11D9@gmail.com> (message from Yuan Fu on Thu, 10 Aug 2023 14:55:52 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267279 Archived-At: 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.