From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mohammed Sadiq 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 08:13:08 +0530 Message-ID: <59aa8ff84460f695fbf94db4849f1596@sadiqpk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11354"; mail-complaints-to="usenet@ciao.gmane.io" To: 65006@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 04:44:19 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 1qR1qU-0002kd-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 04:44:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qR1qG-0005Nn-7I; Tue, 01 Aug 2023 22:44:04 -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 1qR1qE-0005NZ-Gj for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 22:44: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 1qR1qE-0002Je-8G for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 22:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qR1qD-0002Ky-Ro for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 22:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mohammed Sadiq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2023 02:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65006 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug-gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16909442108930 (code B ref -1); Wed, 02 Aug 2023 02:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2023 02:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:48542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qR1ph-0002Jx-Ov for submit@debbugs.gnu.org; Tue, 01 Aug 2023 22:43:30 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:60714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qR1pc-0002Je-7b for submit@debbugs.gnu.org; Tue, 01 Aug 2023 22:43:27 -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 1qR1pV-0002VE-Hq for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 22:43:18 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qR1pR-0001O9-8d for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 22:43:17 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPA id 068A6240004 for ; Wed, 2 Aug 2023 02:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1690944189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TB1leonrBCvFny8TTIxVwzUsoUyASN/XFnbGuU/+oSg=; b=pYIsIMFt7cOrPEEPvMDflKlMg+fGwBbXHCoCVGohyKxrZglsAE6SZw4zIcur5QJHfASEX0 kqCDrhBXT4sMdNEtlebqLzX/UB5gVMURIFrBp/rlbWRNydpujp42CeLHRMyQsX9KaAgjEJ D73WlaZq9etnOxSOVTDwLAPAoJPbSSFVS67mY1WxAbrl9hD4uHkZHgEPaefZHu7RP2YNDO 4ikHesjS12Tlh9zmSBDH6bLuFOM96Nz7qRPIsRWlHUUrzFZRlAIN4D07YPuq96p3Hn5U/z 9HiqOQM/PtcDVOtVqw3mcOwYr5i+mSukMUk78OZE1+ancKg2uKeSOipcs3vdXA== X-Sender: sadiq@sadiqpk.org X-GND-Sasl: sadiq@sadiqpk.org Received-SPF: pass client-ip=217.70.183.193; envelope-from=sadiq@sadiqpk.org; helo=relay1-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:266482 Archived-At: 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. 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-01 built on purism Repository revision: 0c29f53ab8723dd5a9f31ce8a6e913cc08132e56 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --prefix=/usr' 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 Important settings: value of $LANG: en_IN.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C/* Minor modes in effect: 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 mail-extr emacsbug message 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 subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils c-ts-mode c-ts-common treesit cl-seq cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-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 lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 59978 9655) (symbols 48 7209 0) (strings 32 20385 1935) (string-bytes 1 740617) (vectors 16 12951) (vector-slots 8 184640 13476) (floats 8 24 23) (intervals 56 252 0) (buffers 984 11))