From unknown Sun Aug 17 04:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60984: 30.0.50; c-ts-mode: indentation styles broken after new brace code Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jan 2023 12:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 60984@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167430500021704 (code B ref -1); Sat, 21 Jan 2023 12:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2023 12:43:20 +0000 Received: from localhost ([127.0.0.1]:48272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDDM-0005e0-Gz for submit@debbugs.gnu.org; Sat, 21 Jan 2023 07:43:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:40244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDDK-0005ds-EJ for submit@debbugs.gnu.org; Sat, 21 Jan 2023 07:43:18 -0500 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 1pJDDK-0002mU-6e for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 07:43:18 -0500 Received: from out-109.mta0.migadu.com ([91.218.175.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJDDI-00036H-BF for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 07:43:17 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674304992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HUlQyLFDCKAoYZTQBiu9NKoUYXmRYbfZXnwuZkD5OT8=; b=SicqjzbC1/FBvoCCUoSPyKMoPPi3UbljngqHo3CXMNW9/K7Udh2WOilyxXrczjNN7sWJb+ si9Q9eBc8ehpSXF3a3aniGS0BQ8ZkXj1mdcFfMwzbA0cA1rAyR4Kq4cUnvXwadNG1e6ShH G0GUCFNh9KaSaJGyOqrEitB5PfM98c0ApGUQr5Iq8fsi30tPEyhqU9jlSEBGCOC3z7juwJ H+OONSyTyy0Y6qVwyIdA8FyOdfx56D87i6DZkhj0Bbqw/kCK24JiaOK6yBkbLTmoAKbaJj h0R6U9QW/to/RrqYhHbGEC9vFGZ7ht3yqv6eJOxkQUR0IWvVT3J8nCrgHVnb1w== From: Theodor Thornhill Date: Sat, 21 Jan 2023 13:43:12 +0100 Message-ID: <87wn5ggisf.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.109; envelope-from=theo@thornhill.no; helo=out-109.mta0.migadu.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) Hi! It seems there has been some regressions wrt indentation styles with the new brace counting code - for example with bsd style: Previously: int main() { if (x) { } else { } } now: int main() { if (x) { } else { } } I'll try to tweak the code so that all indentation styles work and add tests. Theo From unknown Sun Aug 17 04:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60984: 30.0.50; c-ts-mode: indentation styles broken after new brace code References: <87wn5ggisf.fsf@thornhill.no> In-Reply-To: <87wn5ggisf.fsf@thornhill.no> Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2023 07:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Theodor Thornhill Cc: 60984@debbugs.gnu.org Received: via spool by 60984-submit@debbugs.gnu.org id=B60984.167471970822709 (code B ref 60984); Thu, 26 Jan 2023 07:56:02 +0000 Received: (at 60984) by debbugs.gnu.org; 26 Jan 2023 07:55:08 +0000 Received: from localhost ([127.0.0.1]:60550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKx6C-0005uD-A3 for submit@debbugs.gnu.org; Thu, 26 Jan 2023 02:55:08 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:38565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKx6A-0005tf-Hr for 60984@debbugs.gnu.org; Thu, 26 Jan 2023 02:55:06 -0500 Received: by mail-pj1-f43.google.com with SMTP id k10-20020a17090a590a00b0022ba875a1a4so4532515pji.3 for <60984@debbugs.gnu.org>; Wed, 25 Jan 2023 23:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=skQP1fhL2TsKdpP3+CZbmV5s83rCppoaf/ucOz2LDAY=; b=VyqzqIIqaYXRx7iaMRPp5Xcta2PrmaQpuAQoq6B85BV07TtWzydGoyqCgOuCkY4Uv8 cy9qwdqoKmHXBp0IXE4BZ4oHTx/LaEoZsTYdveFgFHb5xvc8WKyvtDPSJ8kx/d6Va8+H 6V93v+ypWPKZcyC7qG4GpZ+X00wc7F8EPvnN1OSSGSAiPZWdTMRwfv4ypUrumZTUepZ8 z7mJjwbJba31D6XRRKSrVWZLn/VYNl2LfwPQcspL6DBJgOzaxO0SuNwUachF6Ypb+2aW u0KOqkshzuuv3Cns+ytGgnDUBOPDZqEOjb1KiynQKOwpJ9nEyv++m66AHUSamsIzK6TK x98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=skQP1fhL2TsKdpP3+CZbmV5s83rCppoaf/ucOz2LDAY=; b=QzJB8V+IhXYycFfIaFYACq1oSV1hGhnv9C6coC4W81oVmRDE4nU3o7BcRIcDlU6nBU yxhz6GuXSRrGbzpY9HI9sZSshtOU/7tG1zUq6vZHgX2kVYqZUww4TfzNkAqQbPqEwjZM XEXptXmNn6x0HTKa1b1xHCIT0mT6iEE4drgZE55CLhu0m60PTscQa6NLjaeI5Brsmj80 GXu5rcU+/CDOglO9Y82hX2wjlhmawqWySGt50GUfsEUGS8ajdg2WvvYy6zZ71t/TvFsb 0IPB4Cap7+1iJ8srdDiqz9S7WZ/v+Q+MhVvtxvWea5b7U8bVfE8JoLDCuHzUntAKjN4p CTeA== X-Gm-Message-State: AO0yUKWAZL8Frq9jccHkloE6F7v4pONYijI23nR0DGPYxrKJKtcKGeLq FM2b5iKvqT0dytQ5Me5qgV4= X-Google-Smtp-Source: AK7set+9X3v3GsSKVIpOdkeaKKAq/bp2i1V5XV5X0JKINHDWcHYXE+Q+6V+r3Lukjuy5YxcGKmyftA== X-Received: by 2002:a05:6a21:9193:b0:b5:fc85:d864 with SMTP id tp19-20020a056a21919300b000b5fc85d864mr1042605pzb.32.1674719700813; Wed, 25 Jan 2023 23:55:00 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id o125-20020a62cd83000000b00575fbe1cf2esm333017pfg.109.2023.01.25.23.55.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2023 23:55:00 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Message-Id: <0602FE6A-33BE-450B-925C-00830569AA7E@gmail.com> Date: Wed, 25 Jan 2023 23:54:49 -0800 X-Mailer: Apple Mail (2.3731.300.101.1.3) 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 (-) Theodor Thornhill writes: > Hi! > > It seems there has been some regressions wrt indentation styles with the > new brace counting code - for example with bsd style: > > Previously: > > int > main() > { > if (x) > { > > } > else > { > > } > } > > now: > > int > main() > { > if (x) > { > > } > else > { > > } > } > > I'll try to tweak the code so that all indentation styles work and add > tests. > > Theo Yeah sorry about that, I think this is fixed now. Yuan From unknown Sun Aug 17 04:20:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Theodor Thornhill Subject: bug#60984: closed (Re: bug#60984: 30.0.50; c-ts-mode: indentation styles broken after new brace code) Message-ID: References: <87wn5ggisf.fsf@thornhill.no> X-Gnu-PR-Message: they-closed 60984 X-Gnu-PR-Package: emacs Reply-To: 60984@debbugs.gnu.org Date: Wed, 06 Sep 2023 00:07:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1693958822-819-1" This is a multi-part message in MIME format... ------------=_1693958822-819-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60984: 30.0.50; c-ts-mode: indentation styles broken after new brace code which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60984@debbugs.gnu.org. --=20 60984: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60984 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1693958822-819-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60984-done) by debbugs.gnu.org; 6 Sep 2023 00:06:53 +0000 Received: from localhost ([127.0.0.1]:59998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdg4L-0000Cp-Fb for submit@debbugs.gnu.org; Tue, 05 Sep 2023 20:06:53 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:55552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdg4J-0000CY-6G for 60984-done@debbugs.gnu.org; Tue, 05 Sep 2023 20:06:52 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-501be2d45e0so2150061e87.3 for <60984-done@debbugs.gnu.org>; Tue, 05 Sep 2023 17:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693958804; x=1694563604; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=La/igrTa3+kFlyPMF/P7Yk+7pkrxvTala8TnXlWQPHY=; b=TKAAWn7GSL82ACMM8gNz0V2Zcyi6G6N9d6OUoGgEkl7qFJw9XYxq/3mMpOkh5MTpq5 jzGefFqHxmkjDPF+AyLNGSn1lnjHfoxcZSbFg4qDxzaUk/NYpn3J/fUul/kkRPO3hQc5 bvbpgzAwpUrilvOIgxYoJvX5nFF8ZmszdNOhPHUrSMBHQJkJ4HtfPN/OKmZ3BeHbHuua weZ6K/Pw0S0Jc/DGwSRJoX02F7CGCLI5z1+nXsbUQxGx4NsnlSEf4MFxjP1Cl5svoEiE 7Ml0zDGhv501LIEoElU90wZxkzDW4/5JUFc1PFnmgnGz5OTaiiqBz+XXnDNDawmOMBuZ B7kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693958804; x=1694563604; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=La/igrTa3+kFlyPMF/P7Yk+7pkrxvTala8TnXlWQPHY=; b=hH3jYba1A2kVhpoLZi1bwCNxgWJxyvwRgHqFgOlEb68/PlqToaCKnElX2Z5V+uhHBq d4O+K6KC2U+hH5dp3ltCFQHmAdgiLThTewGCLYMJjDP7hrqfciQgv+JvYBav2IK1AfLa Rxs4v8pFwHg4MI9gjYcVt/XAATfcJJ9i4A/DkmSJ6nmHh4D5b/XfeF7telp9o//9JyZt gxym5AU0eagzlCf9+UQAqAl6fElxsjvIs17/1L5d2JlMkAlF3BenojJz6fYNJRijBDhd qZSYn2bNOMVFDQgEpnqgAC8w1f9FdjuSrBp0iujxX/wB4OcZjq4nNsX/HpvwIPZo/ZA6 lgYg== X-Gm-Message-State: AOJu0Yw96WU9OEyBw4puHtvIi9jEwLb/Km/u5chfr0Hkpev8XblyCAer LV4OU8Y1PQh7RvyaE1JP9eRZpWl5YAZH0aQsPHc= X-Google-Smtp-Source: AGHT+IGWMG0oRiahrWtKlOJmTtxiTBtkspCuUk+DZnrZR69ePcaXF3kd6oQy1+NSg2nxm5XVAN5Q9+Kj8RBoKs2k8KI= X-Received: by 2002:a05:6512:210d:b0:500:c2e0:64dd with SMTP id q13-20020a056512210d00b00500c2e064ddmr823352lfr.50.1693958804433; Tue, 05 Sep 2023 17:06:44 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 5 Sep 2023 17:06:44 -0700 From: Stefan Kangas In-Reply-To: <0602FE6A-33BE-450B-925C-00830569AA7E@gmail.com> (Yuan Fu's message of "Wed, 25 Jan 2023 23:54:49 -0800") References: <87wn5ggisf.fsf@thornhill.no> <0602FE6A-33BE-450B-925C-00830569AA7E@gmail.com> MIME-Version: 1.0 Date: Tue, 5 Sep 2023 17:06:44 -0700 Message-ID: Subject: Re: bug#60984: 30.0.50; c-ts-mode: indentation styles broken after new brace code To: Yuan Fu Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60984-done Cc: 60984-done@debbugs.gnu.org, Theodor Thornhill 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 (-) Yuan Fu writes: > Theodor Thornhill writes: > >> Hi! >> >> It seems there has been some regressions wrt indentation styles with the >> new brace counting code - for example with bsd style: >> >> Previously: >> >> int >> main() >> { >> if (x) >> { >> >> } >> else >> { >> >> } >> } >> >> now: >> >> int >> main() >> { >> if (x) >> { >> >> } >> else >> { >> >> } >> } >> >> I'll try to tweak the code so that all indentation styles work and add >> tests. >> >> Theo > > Yeah sorry about that, I think this is fixed now. No further comments within 9 months, so I'm assuming this is fixed. I'm therefore closing this bug report. ------------=_1693958822-819-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Jan 2023 12:43:20 +0000 Received: from localhost ([127.0.0.1]:48272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDDM-0005e0-Gz for submit@debbugs.gnu.org; Sat, 21 Jan 2023 07:43:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:40244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJDDK-0005ds-EJ for submit@debbugs.gnu.org; Sat, 21 Jan 2023 07:43:18 -0500 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 1pJDDK-0002mU-6e for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 07:43:18 -0500 Received: from out-109.mta0.migadu.com ([91.218.175.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJDDI-00036H-BF for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 07:43:17 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674304992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HUlQyLFDCKAoYZTQBiu9NKoUYXmRYbfZXnwuZkD5OT8=; b=SicqjzbC1/FBvoCCUoSPyKMoPPi3UbljngqHo3CXMNW9/K7Udh2WOilyxXrczjNN7sWJb+ si9Q9eBc8ehpSXF3a3aniGS0BQ8ZkXj1mdcFfMwzbA0cA1rAyR4Kq4cUnvXwadNG1e6ShH G0GUCFNh9KaSaJGyOqrEitB5PfM98c0ApGUQr5Iq8fsi30tPEyhqU9jlSEBGCOC3z7juwJ H+OONSyTyy0Y6qVwyIdA8FyOdfx56D87i6DZkhj0Bbqw/kCK24JiaOK6yBkbLTmoAKbaJj h0R6U9QW/to/RrqYhHbGEC9vFGZ7ht3yqv6eJOxkQUR0IWvVT3J8nCrgHVnb1w== From: Theodor Thornhill To: bug-gnu-emacs@gnu.org Subject: 30.0.50; c-ts-mode: indentation styles broken after new brace code Date: Sat, 21 Jan 2023 13:43:12 +0100 Message-ID: <87wn5ggisf.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.109; envelope-from=theo@thornhill.no; helo=out-109.mta0.migadu.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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: -2.4 (--) Hi! It seems there has been some regressions wrt indentation styles with the new brace counting code - for example with bsd style: Previously: int main() { if (x) { } else { } } now: int main() { if (x) { } else { } } I'll try to tweak the code so that all indentation styles work and add tests. Theo ------------=_1693958822-819-1--