From unknown Sun Jun 22 07:29:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61315 <61315@debbugs.gnu.org> To: bug#61315 <61315@debbugs.gnu.org> Subject: Status: 29.0.60; c-ts-mode: 'else if' block indentation is broken Reply-To: bug#61315 <61315@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:29:22 +0000 retitle 61315 29.0.60; c-ts-mode: 'else if' block indentation is broken reassign 61315 emacs submitter 61315 Mohammed Sadiq severity 61315 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 01:24:03 2023 Received: (at submit) by debbugs.gnu.org; 6 Feb 2023 06:24:03 +0000 Received: from localhost ([127.0.0.1]:47252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOuv5-0004gC-Cq for submit@debbugs.gnu.org; Mon, 06 Feb 2023 01:24:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:58860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOuv3-0004fm-6E for submit@debbugs.gnu.org; Mon, 06 Feb 2023 01:24:01 -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 1pOuv2-0007HD-SN for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2023 01:24:00 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOuv1-0002Mb-9p for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2023 01:24:00 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id A830E1C0005 for ; Mon, 6 Feb 2023 06:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1675664635; 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=qi5tnkJPgajWz/s3U3Hhha/6JSPr56YVsPrRxeNMTDs=; b=AN/PUuE2n2cWsH+HPH5O6b+GPvyZ5VkO2BAyWokBSb4CnvFB2kig4CnuQ/prrz1OGpLvan 9rozI/BrNg1DtuLJA1IvctHibiJQX9J3UdJv3v7Ff+lZRlGhxFdkDTSoqDn82zxTZNMB5u 2qfQ7Slax8Mb9IpKKtwkyf4dJpNQpSG1g203ExjhEHtqpkZUrRlGrV/Tk/85KTVu7Lr8YK LIpelZYgtDFCnbVHpGhLIBCO78ysjBL+2h/XDvXxDjVJ1SjCBwo6Mj4dw9FdOz/0+VNNwy i8fdCHOk+PEA70FZik0c2wbnXfrn1OJMrxppMAonCEVj9vjWNPJbP3V5m1SNNw== MIME-Version: 1.0 Date: Mon, 06 Feb 2023 11:53:55 +0530 From: Mohammed Sadiq To: bug-gnu-emacs@gnu.org Subject: 29.0.60; c-ts-mode: 'else if' block indentation is broken Message-ID: <0145b4ccc9a881a398a565f577ece234@sadiqpk.org> X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2001:4b98:dc4:8::225; envelope-from=sadiq@sadiqpk.org; helo=relay5-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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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.6 (--) The following code indentation is broken: int main(void) { if (a) { do_something(); } else if (b) { do_something_else(); } } Where do_something_else(); statement is indented more than it should be. afair this seems to a recent regression. In GNU Emacs 29.0.60 (build 14, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.16.0) of 2023-02-06 built on purism Repository revision: 79ab62e0bb5d6185a358a2473c65b6461ea97793 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101006 System Description: Debian GNU/Linux bookworm/sid From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 21:25:30 2023 Received: (at 61315) by debbugs.gnu.org; 7 Feb 2023 02:25:30 +0000 Received: from localhost ([127.0.0.1]:50534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPDfm-0005Ia-1v for submit@debbugs.gnu.org; Mon, 06 Feb 2023 21:25:30 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPDfk-0005IN-9h for 61315@debbugs.gnu.org; Mon, 06 Feb 2023 21:25:28 -0500 Received: by mail-pj1-f45.google.com with SMTP id pj3so13545811pjb.1 for <61315@debbugs.gnu.org>; Mon, 06 Feb 2023 18:25:28 -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=uk0qF608XluxpEqxUglLydftVdKygjnyEHU/L8Mm9RU=; b=o7LM6Pu4El4qWg6OTfYt5vUFMqx7v/VYFnANCMQM4P7VY/6aLZQlifWsXioIk8yC8i uRqwHJ2gNfIw4eZy6OFPIitSTmEPNxY/jQvAHE8p0gdI8S0QOmVMdLmi4a1eWnjfWNaq UEId/fIIhcp0TQy7sNEOMViiVwzzL5d/shSGj6KL5l5Wb/vtElNGMRVSAcRiCOkJD9ap IQshRQvI74ePtGVcudE0yV6o0Gk33fkkUjZ3oHIk5u5Th5yO+yUtDG4ZOP1G41t/m3/u LgUe70uW/WRXGBey93QJE/RpjmIj3CKdV8zinGrVJLNKYzVQMhnTojAJj4owB3sC7Hjz wmdQ== 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=uk0qF608XluxpEqxUglLydftVdKygjnyEHU/L8Mm9RU=; b=AfE2+YpWSMmKTYWEVBBfBufyhhNnmTFXixAM8dUvEzTtmcdXAKagiTe7Ze9nllf9hw zJtpl1P/1hnPw0jRP1X1d1BiwUVW+ZKGd/K2fG9+2XpUOiM+QkUaH1Sb2M2YBrr/2FuL uLllpdry0y3AHiY9j8RmjAF3Do+ByQ2OxTuP2OzkUMvH/Z4POGp6uoLj29HjQVOhNXaN zpPxrFtkCsMNaDpHnSgtD6xuP6xYRSGOW5fiSkHxLPgUWRqBky8TJGEJJ0NzMPmPX7aL N9Fa52fJxsWh49okZQUZO8rGecn0fQSprlH1Lcm8r/+YqW8jk47pdz5C/Hx4ZBfnTA6t cjNA== X-Gm-Message-State: AO0yUKUc4wMjxifGpDK8fXu1G3p1dK/LEqoojxXUXhX0duOPuVFOZEOL +xN7m/LuLJYFMg9l8l/KW3U= X-Google-Smtp-Source: AK7set933pi3OcxN/SWZ06z8Ra9WUk89PEksjOLpwFgLtBbSdSveuHOVQSdKYjf+gHZyKQvnKiuV1A== X-Received: by 2002:a17:90b:1d86:b0:230:754c:32c5 with SMTP id pf6-20020a17090b1d8600b00230754c32c5mr1938897pjb.27.1675736722293; Mon, 06 Feb 2023 18:25:22 -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 t6-20020a17090ad50600b00230cbb4b6e8sm1879841pju.24.2023.02.06.18.25.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2023 18:25:21 -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\)) Subject: Re: bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken Message-Id: <46379532-1E64-420E-AC7B-C493CA4A4F33@gmail.com> Date: Mon, 6 Feb 2023 18:25:19 -0800 To: Mohammed Sadiq X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61315 Cc: 61315@debbugs.gnu.org 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 (-) Mohammed Sadiq writes: > The following code indentation is broken: > > int > main(void) > { > if (a) > { > do_something(); > } > else if (b) > { > do_something_else(); > } > } > > Where do_something_else(); statement is indented more than it should be. > afair this seems to a recent regression. This is the indentation I get: int main(void) { if (a) { do_something(); } else if (b) { do_something_else(); } } Is that not what it should be? Yuan From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 21:31:34 2023 Received: (at 61315) by debbugs.gnu.org; 7 Feb 2023 02:31:34 +0000 Received: from localhost ([127.0.0.1]:50542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPDle-0005Tl-3K for submit@debbugs.gnu.org; Mon, 06 Feb 2023 21:31:34 -0500 Received: from mail-pl1-f180.google.com ([209.85.214.180]:42659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPDlb-0005TT-Oa for 61315@debbugs.gnu.org; Mon, 06 Feb 2023 21:31:32 -0500 Received: by mail-pl1-f180.google.com with SMTP id e19so6308275plc.9 for <61315@debbugs.gnu.org>; Mon, 06 Feb 2023 18:31:31 -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=wlKNAwLc85Tj8SCpVDW79r4UESBIZtbYiX1Wr6mehas=; b=MaKxAHY+QceU70vJk1y7C6jv47zmTF4fGFYksnUnWWRLYvzepiu8bEGpw3nSf4hF21 OHIZwzHXsguUcP1ac5SaaE15DeGhw3SnAAQnoK7DsRrtsLjrmVE9EXQLeE5GcsyP08vt D42K41zsO6nb9rjQz+EoErQCbmuvnczzjnqanuAtv32+VJwKOOEnQQCWe8OLVzqyrE6f N46cTmFn+9OFks5Tl0FQrhD3YXvmpThNdpymNsixHlnkOMeKpU9HjpAbVw4lGf/27udK xYIiVYSHvR+t3q+BXLH75jXQnFvmM6EYXAcZnX1XljH/8MYkwR8DOCutFbN4eqkTjTgx a/1Q== 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=wlKNAwLc85Tj8SCpVDW79r4UESBIZtbYiX1Wr6mehas=; b=aRmqNbPl7iDalii4JYKLADG3Rvz9cU/gM23Ti2o/mFFsuBScRo6tVuNnSpi77wv4va FF/BMOBl1NJf//HOWeutsltqY5yqadnhtMpeLU7Hid+L2fiLow91ciJ5T8HxueWio2Ge Hzhx0C1bCPpHIxa9KDvYhAJGAMzm8877MEb6iyo8cqFqL0jw0QdXZQPMxvACQTVjZNXy 7UNxJtIK/l73EO1+UXyat4wj23oPgL4zWmSeBPXPVSTeRUWLBX6SkdFqa+wA1E1vt2AQ MlhHu+zN8EHIqE3uXt6EfCx/J90CLxlsb3uvDPyGRP9WEDWbXZo2ER44wTOCrPKZtEYM iAvg== X-Gm-Message-State: AO0yUKWoEdRz0CiNk6KW52C/Ou9xF4ezRqnYyWXnqUniB1z7WH0TD2pE AG/mydUNhxVpwbn7RNeKER0H35RvhVI= X-Google-Smtp-Source: AK7set/HLuKrtHyZwLGgSzUy3yZlFte/ajsE9AwzxyKVLQG0KEmt6C4kgKXyUdVMm80x1vlMkge6gw== X-Received: by 2002:a17:902:ced0:b0:196:725c:6ea with SMTP id d16-20020a170902ced000b00196725c06eamr1381202plg.19.1675737085929; Mon, 06 Feb 2023 18:31:25 -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 ju5-20020a170903428500b00198e7d97171sm6345696plb.128.2023.02.06.18.31.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2023 18:31:25 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken Message-Id: Date: Mon, 6 Feb 2023 18:31:14 -0800 To: Mohammed Sadiq X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61315 Cc: 61315@debbugs.gnu.org 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: > Mohammed Sadiq writes: > >> The following code indentation is broken: >> >> int >> main(void) >> { >> if (a) >> { >> do_something(); >> } >> else if (b) >> { >> do_something_else(); >> } >> } >> >> Where do_something_else(); statement is indented more than it should = be. >> afair this seems to a recent regression. > > This is the indentation I get: > > int > main(void) > { > if (a) > { > do_something(); > } > else if (b) > { > do_something_else(); > } > } > > Is that not what it should be? My bad, I didn=E2=80=99t push the change I recently made. I just pushed = them. Yuan From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 19 15:57:39 2023 Received: (at control) by debbugs.gnu.org; 19 Feb 2023 20:57:39 +0000 Received: from localhost ([127.0.0.1]:49776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTqkd-0005fB-2Q for submit@debbugs.gnu.org; Sun, 19 Feb 2023 15:57:39 -0500 Received: from mail-pg1-f176.google.com ([209.85.215.176]:43599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTqkb-0005ex-So for control@debbugs.gnu.org; Sun, 19 Feb 2023 15:57:38 -0500 Received: by mail-pg1-f176.google.com with SMTP id 8so336711pge.10 for ; Sun, 19 Feb 2023 12:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=MfeFP36ZSaU5Dk2ScWz1sHAR6+BndXvah3L6Rj6MSG8=; b=mOoB8da8G6/EXM/VEYd1WwWqlUQOGp+xyTU+d18s6G2sgyFvkQAyzhrHmteQEunqSg 0za0P9/RQvHBld/MrzaXB3pHsjVKPIg8pYlUeHtSLWAde352YFfPG1KIaiOPBmKDVxTd lRhhy6gPoYA0QDf6Q9o+bvpbX0aMdtH3suvIu/gjMufHWQ3dHtl0cHiQKxiy9FJXokxx QvOJ+l+YCA3s9F1ipfKsoFBmUeJJQvFjm00emyMUnGw+/uNOTK7qoqlfdKFCe5gj7TH8 ElZ8XGPDMEGLwY/ftGkK0pRQJu/391VONvZkQHoRnWHbJHTk7K2m0Nia1dng5E0oHfOA bLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MfeFP36ZSaU5Dk2ScWz1sHAR6+BndXvah3L6Rj6MSG8=; b=G3qrcj90P2rSDghDh78FWCvsr/iF/i7pvUvmMSepxz8UfzbRpgNQNsBJ6o7Oo1caIc yunoaiRI+iBo6iOA5cYKirHqqW4y8RpAqrU2TrbOMOp5tVcOy4q04PYXeo6+1N6RoOBe hQ7Mo376wtPNBnXwVezXPOoPYL9K9123tTCE12UXYRvVFT7p6hS9/dmMFQrO6ympt/TA 3j3SiuEIoISS21ivSlE8byMoNNAF4kDAsJ5qLw+aV2l4yHsAZPgkHNlkN1G5fVA0eeFp lY8brXqcwyAOaxzTeexeBHQvjqlqpnuI/A0Nj8yJkgTLeKBmDMs5SZ3HDVheNO6DLb4K O32A== X-Gm-Message-State: AO0yUKWQqRIsSHZMYVEateYFBp4LdTMzRGPaCmU8wYycJYQjRA/aEsYi cvpwjBKYJPYO79i7cGxrxAIttqwp20A= X-Google-Smtp-Source: AK7set/NZVHQyeEQrFB7fEllqTPie8XHmQzW+K8Owzclg2swOkxmdirP7mMOcx9Fb9gdKFo01Lujnw== X-Received: by 2002:a05:6a00:f03:b0:5a9:cad5:b283 with SMTP id cr3-20020a056a000f0300b005a9cad5b283mr1489307pfb.14.1676840252134; Sun, 19 Feb 2023 12:57:32 -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 d6-20020aa78e46000000b005accb31201fsm323164pfr.26.2023.02.19.12.57.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2023 12:57:31 -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\)) Subject: control message for bug #61315 Message-Id: <1B2B212F-7F9A-40D8-8C7D-268A8982538A@gmail.com> Date: Sun, 19 Feb 2023 12:57:21 -0800 To: control@debbugs.gnu.org X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) close 61315 29.1 quit From unknown Sun Jun 22 07:29:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Mar 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator