From unknown Thu Jun 19 14:18:16 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#60543 <60543@debbugs.gnu.org> To: bug#60543 <60543@debbugs.gnu.org> Subject: Status: 29.0.60; c-ts-mode: Labels are not properly indented Reply-To: bug#60543 <60543@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:18:16 +0000 retitle 60543 29.0.60; c-ts-mode: Labels are not properly indented reassign 60543 emacs submitter 60543 Mohammed Sadiq severity 60543 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 04 02:28:19 2023 Received: (at submit) by debbugs.gnu.org; 4 Jan 2023 07:28:19 +0000 Received: from localhost ([127.0.0.1]:47502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCyCA-0004GM-OZ for submit@debbugs.gnu.org; Wed, 04 Jan 2023 02:28:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:37264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCyC6-0004GC-Lf for submit@debbugs.gnu.org; Wed, 04 Jan 2023 02:28:17 -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 1pCyC2-0004MH-Qn for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 02:28:14 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCyBz-0004GK-8t for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 02:28:10 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 84F30240004 for ; Wed, 4 Jan 2023 07:28:03 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 04 Jan 2023 12:58:03 +0530 From: Mohammed Sadiq To: bug-gnu-emacs@gnu.org Subject: 29.0.60; c-ts-mode: Labels are not properly indented Message-ID: <8150ae85ab6d07c6b76a9e06d19e70a3@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=217.70.178.230; envelope-from=sadiq@sadiqpk.org; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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 (--) With the default "gnu" style, labels are not properly indented. Eg., for the following code: int main (void) { end: clean (); } I expect to get the following indentation for "end:" (single space before "end" for "gnu" style, and no indentation for "linux" style): int main (void) { end: clean (); } In GNU Emacs 29.0.60 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.16.0) of 2023-01-02 built on purism Repository revision: 2569ede9c496bb060e0b88428cb541088aaba1f9 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101005 System Description: Debian GNU/Linux bookworm/sid From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 06 01:10:01 2023 Received: (at 60543) by debbugs.gnu.org; 6 Jan 2023 06:10:01 +0000 Received: from localhost ([127.0.0.1]:53567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDfvU-0001Kj-Qe for submit@debbugs.gnu.org; Fri, 06 Jan 2023 01:10:01 -0500 Received: from mail-pj1-f50.google.com ([209.85.216.50]:56220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDfvT-0001KV-2y for 60543@debbugs.gnu.org; Fri, 06 Jan 2023 01:09:59 -0500 Received: by mail-pj1-f50.google.com with SMTP id ge16so576392pjb.5 for <60543@debbugs.gnu.org>; Thu, 05 Jan 2023 22:09:59 -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=KX9EwiORdKK5tn+ER9zse55hddi1+LHdJWcZPiBF2fM=; b=fXvyynE45MHMCNOevCRVT3c+gc7gn/qiQ34Q2PMQo9TVrXrJdPBca6mfiyw4goVBkz 6CmRmkwLnVVVUkZtacgipTUxnvYB//KJQxuu3z159f2uiX6fj5gF33vWQEQSTlbAPNi4 kg6rZ8sJ9D0eK4nPfrHfhgqLCJ33OLul0LRFqu6bRGQoVyMuO0yKVxpeNvjQMcNXViSv eDY+Kl5SAeznpSyqiXjW2jbMhsk2n/WjXWLEuOYgy3PrtLzDAa0lkwEWQ561VKyS6fQc 22Gi9VPduftmCEeDgnWf01CNLxUbB3UiyEqU1Nz/OsEZz5BPLHBadbHqHVPaTXuk68Rj t1KQ== 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=KX9EwiORdKK5tn+ER9zse55hddi1+LHdJWcZPiBF2fM=; b=gfPQEmu5EPm83f/97mmjdRu8CVXcF3O3Bd6farw447ehCYTgS8Dntik1wvXS8lQGGl Mb2nsstSlsg4S6rYbhXl8sO6JM7YWeUUe8/9qFyoF3UUE8qXhRKDeu3WNlUNFb4fn5sq Y3+nu4YkPiSToUoqHTNfc8kLAL4YMqzLamx2McTeiCgHNBsz/yT5zRDFmnjH9QHSun/4 6/CLSz+5lgCaQ3IgD9aRXDg+CENddiPghiiN2a43Y2TKIMPUKm7KyhstGHLCV2a418cJ wqngMf3GEfnG+X8HfoLmm57t7oYTzE42bA2821V0OfYnc+SkqeuW9pdn9Pyqt/OnYosn xtDw== X-Gm-Message-State: AFqh2kpQ7Irqr5ZveoY0kDGPOJ4uBSOAyEPNJRibz2Mtphr2fmOpVBPT mQmj5MYYZAwvKIGQzqFApu4v4lxErF4= X-Google-Smtp-Source: AMrXdXu36LxWOpjtExC15mdcXRuzyqW8oXRHVXFfVigoUCMcYSxF6kIm/mB3vmxzv3jbiFxCvgG6Yw== X-Received: by 2002:a17:90b:394b:b0:226:d73d:12f4 with SMTP id oe11-20020a17090b394b00b00226d73d12f4mr3003368pjb.28.1672985393486; Thu, 05 Jan 2023 22:09:53 -0800 (PST) Received: from smtpclient.apple (ip68-3-33-122.ph.ph.cox.net. [68.3.33.122]) by smtp.gmail.com with ESMTPSA id i8-20020a17090a138800b00226369149cesm2113447pja.21.2023.01.05.22.09.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2023 22:09:53 -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 \(3696.120.41.1.1\)) Subject: Re: bug#60543: 29.0.60; c-ts-mode: Labels are not properly indented Message-Id: <8C813515-8827-4BF9-AB46-28BB0F9BE498@gmail.com> Date: Thu, 5 Jan 2023 23:09:52 -0700 To: Mohammed Sadiq X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60543 Cc: 60543@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: > With the default "gnu" style, labels are not properly indented. > > Eg., for the following code: > > int > main (void) > { > end: > clean (); > } > > > I expect to get the following indentation for "end:" (single space > before "end" for "gnu" style, and no indentation for "linux" style): > > int > main (void) > { > end: > clean (); > } > Thanks for the report! As I said in another message, I=E2=80=99ll work = on them once I get back home. Stay tuned :-) Yuan From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 07 21:16:09 2023 Received: (at 60543) by debbugs.gnu.org; 8 Jan 2023 02:16:09 +0000 Received: from localhost ([127.0.0.1]:59454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pELEG-00071f-TW for submit@debbugs.gnu.org; Sat, 07 Jan 2023 21:16:09 -0500 Received: from mail-pj1-f54.google.com ([209.85.216.54]:33319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pELEB-00070r-U9 for 60543@debbugs.gnu.org; Sat, 07 Jan 2023 21:16:07 -0500 Received: by mail-pj1-f54.google.com with SMTP id fz16-20020a17090b025000b002269d6c2d83so8680218pjb.0 for <60543@debbugs.gnu.org>; Sat, 07 Jan 2023 18:16:03 -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=aiwZXyibCpzK1hU+VWy88bQvuPZy61g3edetKazTXiI=; b=MPASlf7qRyaniTxyoHjNna76Rp8RIeAKDz3m5YsH8pxZGhIdhYEv1utONDfzHpQMep HBIVVrk8e+py8+fMMJvkWKt8QW4SzWEIev2K8kwlxOJKPTH7ggi3fZMsCzRSLvq/3BbF ANYly+IiCrZfJ3OJEq/aAZPWIyPFpaa7NRav01G7Gaue+Dcbo9LzA0saHWAyDCY+n/p1 CFwk7hzo2Xp+6YlR8qbizmeJNFAUA/SkM4Xl8JgLhfpr65Hzq9I6ISlrQSO+XdcmFgPZ m5Le8ovooR2QDU5jLol4WeHBmQe3umaIdttc2S09YvXZK6tH4VTLcstsQFjQ3ooeuihk hEiQ== 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=aiwZXyibCpzK1hU+VWy88bQvuPZy61g3edetKazTXiI=; b=DOpL+wdrXg9FxGL5aJhq2eFJjkNx1uscGAjuPw188kp/RNo3ufcvR1YpdYv6wwZHLM joHcox/xUwXwv3i5lBCNdsHxUZ3Hruanbf5tMp/6OY4kkTWe89cg/N/1aifks6cOdGEa oIt7BzIvsqBFGdCefPVBC4JvUtSLJG+KhCzrg8pqMYO2K07G7KofIrmq0/j835KSNx/O F5QAGaa8JXUAs58T4sxuCdxdy2rxd3swDGVuF4uNSumFFVFc1oDwM5B17/kFHxwKb2Fq xJimEEiv0iqyYNRAz/MNqSGz4Q9Yp0C6LPg1Jhut0DGLS+g0itlc2T94cOQP4winseBr jscA== X-Gm-Message-State: AFqh2kouDbDhn8sgtMLGFc8otvMfRIXhVW5/izCHLFecdW/UwSH4CEi8 rfnu70aRHtYE/ELIOC9g6sg= X-Google-Smtp-Source: AMrXdXtl2oFZwE2Z6IvI0cIV2dcb0khS8XP109d0wzSlmLafGzq0NZ4LaV5h5nnTu68TMTo4hziQVw== X-Received: by 2002:a05:6a20:8341:b0:ad:a5fd:b659 with SMTP id z1-20020a056a20834100b000ada5fdb659mr56425450pzc.7.1673144158053; Sat, 07 Jan 2023 18:15:58 -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 g11-20020aa79f0b000000b00581d7ef91b2sm3470450pfr.20.2023.01.07.18.15.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2023 18:15:57 -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 \(3696.120.41.1.1\)) Subject: Re: bug#60543: 29.0.60; c-ts-mode: Labels are not properly indented Message-Id: Date: Sat, 7 Jan 2023 18:15:56 -0800 To: Mohammed Sadiq X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60543 Cc: 60543@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: > With the default "gnu" style, labels are not properly indented. > > Eg., for the following code: > > int > main (void) > { > end: > clean (); > } > > > I expect to get the following indentation for "end:" (single space > before "end" for "gnu" style, and no indentation for "linux" style): > > int > main (void) > { > end: > clean (); > } After reading the manual for GNU indent, I think Linux style asks for indenting labels to column 1, not the GNU style. And c-ts-mode=E2=80=99s = current GNU style indentation agrees with GNU indent. So I only added a rule to indent labels to column 1 in Linux style. Feel free to correct me, of course. Yuan From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 08 03:36:58 2023 Received: (at 60543) by debbugs.gnu.org; 8 Jan 2023 08:36:58 +0000 Received: from localhost ([127.0.0.1]:59805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pERAo-0000QM-9f for submit@debbugs.gnu.org; Sun, 08 Jan 2023 03:36:58 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:41169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pERAm-0000Q3-2a for 60543@debbugs.gnu.org; Sun, 08 Jan 2023 03:36:56 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 015991BF204; Sun, 8 Jan 2023 08:36:46 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 08 Jan 2023 14:06:46 +0530 From: Mohammed Sadiq To: Yuan Fu Subject: Re: bug#60543: 29.0.60; c-ts-mode: Labels are not properly indented In-Reply-To: References: Message-ID: <41823597557dbc767678a4cda4711717@sadiqpk.org> X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60543 Cc: 60543@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.7 (-) On 2023-01-08 07:45, Yuan Fu wrote: > After reading the manual for GNU indent, I think Linux style asks for > indenting labels to column 1, not the GNU style. And c-ts-mode’s > current > GNU style indentation agrees with GNU indent. > > So I only added a rule to indent labels to column 1 in Linux style. > Feel > free to correct me, of course. > > Yuan As per https://www.kernel.org/doc/html/v6.0/process/coding-style.html#centralized-exiting-of-functions the label has no indent from the parent block And for GNU style, I couldn't find an example the style manual, nor in GNU hello. So I except c-ts-mode to have the same behavior as c-mode (even if it's wrong as per GNU indent,). In short, I expect c-ts-mode to behave the same as c-mode because that's what users often expect (ie, for those who uses GNU indent, their code will indent right regardless of how c-mode or c-ts-mode behave. But for the users who migrate from c-mode - the anticipated user base of c-ts-mode - expects it to be no different from c-mode) cheers, Mohammed Sadiq From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 08 20:06:49 2023 Received: (at 60543-done) by debbugs.gnu.org; 9 Jan 2023 01:06:49 +0000 Received: from localhost ([127.0.0.1]:35232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEgcj-0002l6-8S for submit@debbugs.gnu.org; Sun, 08 Jan 2023 20:06:49 -0500 Received: from mail-pl1-f169.google.com ([209.85.214.169]:43844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEgch-0002km-7q for 60543-done@debbugs.gnu.org; Sun, 08 Jan 2023 20:06:48 -0500 Received: by mail-pl1-f169.google.com with SMTP id d3so7869712plr.10 for <60543-done@debbugs.gnu.org>; Sun, 08 Jan 2023 17:06:47 -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=JSKMcXh+klxOnwf/qyNOedPZVOmtxdePnEppi1u45ZA=; b=EaSLsgmoXrQ8GnNGwMCMAilv5CZBMWeeMUQAw3WwiyjIAcENRdXMjoEOK/QZyujLeV EWPE2rsnED5rIEofZ0OBVnqYu7UOqaYEdGbnAY+wYr5WhiAto4qQ/wBrsyqK9JCqQ6vh cB5Bie4uhigtr/OYEBQpFtPwLKDLf0h+8xiUSq42cLiVXU0CQVcjzh0qHjG7ltk58uNE lTXUF9oX2tYo6nkeI/TyVlAi1rpyDZAtm+FzwiDn2DrxULlopZoponPDm/OucsGKzZW2 TWPp+lhKDHEwyuGIjWUvBIxVO862k+ynwUY1oaOqFh8EZRm2Q3eoSHROoeQdL0v3Se7j 1img== 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=JSKMcXh+klxOnwf/qyNOedPZVOmtxdePnEppi1u45ZA=; b=zlkfXycaH4S+QybICOJXE2jgi4YjVDUOdUC7TgMjORHKrHqU60j8G+G5oGC0kFjO4f s7snePTKmj4YPUBJGUG539GM/pVPFhH6AS5kvBWKbpCki4z5Hgu3Q1Xtat/fice5RbLI qXoi9RtHlEKkOzwrxZsUPSQQuMQ9GFYXo9PG2n7B6V15mX5PooUfjj0TPZD/sEBHYZoo +a5LR987CLMqB2c8FqqyTvJB1pNDyC51OGIz1JSSfp04Z8mJBIoZPIqM7GRcpt6jD7gs 0r5guqXAIsHDMxoAwzJRUUczeO5S8l7/LHDqS8HaDQjsctPQTJDDiwB5PHnloEobhpN4 QasA== X-Gm-Message-State: AFqh2kpR9p/jP7yd0VVMC3t0XuW0WDQUwSpqeD2wwwZwSYx7+uzxmmS8 Q9Ys76FHvAsTRhk+1NKjrYrMGFU9qJ85Ew== X-Google-Smtp-Source: AMrXdXvMo2s2VQpaJFSTBVoAqD2Iwxv5uPen7BgDVRNsTrOzApWjUYs5HhWO1I/chc/GpoirO4B04w== X-Received: by 2002:a17:903:2601:b0:192:7b1a:9044 with SMTP id jd1-20020a170903260100b001927b1a9044mr53485922plb.17.1673226401288; Sun, 08 Jan 2023 17:06:41 -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 b11-20020a1709027e0b00b0018982bf03b4sm4702774plm.117.2023.01.08.17.06.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2023 17:06:40 -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 \(3696.120.41.1.1\)) Subject: Re: bug#60543: 29.0.60; c-ts-mode: Labels are not properly indented Message-Id: <2F43D0CF-3FFC-4252-A5C7-D5EA352B3F4B@gmail.com> Date: Sun, 8 Jan 2023 17:06:39 -0800 To: Mohammed Sadiq X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60543-done Cc: 60543-done@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: > On 2023-01-08 07:45, Yuan Fu wrote: >> After reading the manual for GNU indent, I think Linux style asks for >> indenting labels to column 1, not the GNU style. And c-ts-mode=E2=80=99= s >> current >> GNU style indentation agrees with GNU indent. >> So I only added a rule to indent labels to column 1 in Linux style. >> Feel >> free to correct me, of course. >> Yuan > > As per > = https://www.kernel.org/doc/html/v6.0/process/coding-style.html#centralized= -exiting-of-functions > the label has no indent from the parent block > > And for GNU style, I couldn't find an example the style manual, nor in > GNU hello. > So I except c-ts-mode to have the same behavior as c-mode (even if > it's wrong > as per GNU indent,). > > In short, I expect c-ts-mode to behave the same as c-mode because > that's what > users often expect (ie, for those who uses GNU indent, their code will > indent > right regardless of how c-mode or c-ts-mode behave. But for the users > who > migrate from c-mode - the anticipated user base of c-ts-mode - expects > it to > be no different from c-mode) Thanks. You are completely right. Linux style indents to column 0, and GNU style indents to column 1 in top-level function and base indent level of the parent in nested blocks (which is ... interesting). I changed it to indent like that. Yuan From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 00:45:53 2023 Received: (at 60543) by debbugs.gnu.org; 9 Jan 2023 05:45:53 +0000 Received: from localhost ([127.0.0.1]:35438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEkyn-0000i3-8l for submit@debbugs.gnu.org; Mon, 09 Jan 2023 00:45:53 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEkyk-0000hk-Gu for 60543@debbugs.gnu.org; Mon, 09 Jan 2023 00:45:52 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 1127A1C0004 for <60543@debbugs.gnu.org>; Mon, 9 Jan 2023 05:45:42 +0000 (UTC) MIME-Version: 1.0 Date: Mon, 09 Jan 2023 11:15:42 +0530 From: Mohammed Sadiq To: 60543@debbugs.gnu.org Subject: Re: bug#60543: closed (Re: bug#60543: 29.0.60; c-ts-mode: Labels are not properly indented) In-Reply-To: References: <2F43D0CF-3FFC-4252-A5C7-D5EA352B3F4B@gmail.com> <8150ae85ab6d07c6b76a9e06d19e70a3@sadiqpk.org> Message-ID: X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60543 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.7 (-) On 2023-01-09 06:37, help-debbugs@gnu.org wrote: > Your bug report > > #60543: 29.0.60; c-ts-mode: Labels are not properly indented > > which was filed against the emacs package, has been closed. This is still not fixed. Was this closed accidentally? From unknown Thu Jun 19 14:18:16 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, 06 Feb 2023 12:24:08 +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