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#65006: 29.1.50; c-ts-mode: else block not indented right on TAB Date: Wed, 02 Aug 2023 14:32:53 +0300 Message-ID: <83zg39znkq.fsf@gnu.org> References: <59aa8ff84460f695fbf94db4849f1596@sadiqpk.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4588"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65006@debbugs.gnu.org To: Mohammed Sadiq , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 13:33:12 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 1qRA6I-0000ut-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 13:33:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRA6B-0003gC-8O; Wed, 02 Aug 2023 07:33: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 1qRA6A-0003g2-2S for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:33: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 1qRA69-0007wj-Qp for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRA69-0002Lh-Mf for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:33: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: Wed, 02 Aug 2023 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65006 X-GNU-PR-Package: emacs Original-Received: via spool by 65006-submit@debbugs.gnu.org id=B65006.16909759749017 (code B ref 65006); Wed, 02 Aug 2023 11:33:01 +0000 Original-Received: (at 65006) by debbugs.gnu.org; 2 Aug 2023 11:32:54 +0000 Original-Received: from localhost ([127.0.0.1]:48962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRA62-0002LN-C3 for submit@debbugs.gnu.org; Wed, 02 Aug 2023 07:32:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRA61-0002LA-79 for 65006@debbugs.gnu.org; Wed, 02 Aug 2023 07:32:53 -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 1qRA5v-0007ux-NH; Wed, 02 Aug 2023 07:32:47 -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=x2fX4Qxw4M6HZgJptJOLYsnGC+JzFFDw99IzV2lnrag=; b=DyDTFhQeOYZ5 11yoLFVySnFjxv/RLIOby+rqZ4mQiIGAF3JoD+Qg9KWoT/pUh/J8ExEab55reVIObuFDmtrf8sDwU pgvxjLeq+6CxvwbH965RVyIlnkmfltgwL/O6nmY7rknKMif7YoBkhGGi5hT1Md/rqPPxPW4QNI7pQ 5qAHj8AJNIPGLNuPAD1z7hag0Y9Qwv5c9LTef3XDFVBLtwpAzYfNEm4BSx+MPY4JGZOQujN8ZTJMf 6CCCqzFwe2zvybVE0Oi9M5igl/HsDkq92ZdlXxglkA6PqZNjQyXj6895GkbXA4+2/W/VDs02U4osS rXd43GQz4cgbcZF31UQYmg==; Original-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 ) id 1qRA5t-0004U2-9k; Wed, 02 Aug 2023 07:32:46 -0400 In-Reply-To: <59aa8ff84460f695fbf94db4849f1596@sadiqpk.org> (message from Mohammed Sadiq on Wed, 02 Aug 2023 08:13:08 +0530) 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:266489 Archived-At: > Date: Wed, 02 Aug 2023 08:13:08 +0530 > From: Mohammed Sadiq > > The else block in the following code is not indented on TAB: > > int > main (void) > { > if (true) > do_something (); > else > do_something_else (); > } > > How to reproduce: > 1. Select the complete buffer > 2. Press TAB > > Expected result: > do_something_else() should be indented > > afair, this did seem to work in the past. May be this > happened after I updated treesitter-c module, idk. Thank you for your report. Yuan, can you look into this, please?