From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation Date: Mon, 9 Jan 2023 21:28:26 -0800 Message-ID: <413F780A-17C6-4AA7-A67B-1E1415349E94@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2828"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60270@debbugs.gnu.org To: Mohammed Sadiq Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 10 06:29:17 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 1pF7CG-0000VJ-Gp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Jan 2023 06:29:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pF7C5-00020I-4f; Tue, 10 Jan 2023 00:29:05 -0500 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 1pF7C3-0001xY-2C for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2023 00:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pF7C2-0006nS-Aj for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2023 00:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pF7C1-0008MI-Vb for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2023 00:29:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jan 2023 05:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60270 X-GNU-PR-Package: emacs Original-Received: via spool by 60270-submit@debbugs.gnu.org id=B60270.167332851632098 (code B ref 60270); Tue, 10 Jan 2023 05:29:01 +0000 Original-Received: (at 60270) by debbugs.gnu.org; 10 Jan 2023 05:28:36 +0000 Original-Received: from localhost ([127.0.0.1]:38512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF7Bc-0008Le-5E for submit@debbugs.gnu.org; Tue, 10 Jan 2023 00:28:36 -0500 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:44550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF7Ba-0008LQ-91 for 60270@debbugs.gnu.org; Tue, 10 Jan 2023 00:28:34 -0500 Original-Received: by mail-pj1-f43.google.com with SMTP id o7-20020a17090a0a0700b00226c9b82c3aso12194076pjo.3 for <60270@debbugs.gnu.org>; Mon, 09 Jan 2023 21:28:34 -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=xXGPMUbpKiggiEUxNjpRRQarAQfKAZLBpXw3h3ikb28=; b=FVJfYZtG67WqHhxXpTbFKrfPIkGCxiPI0jH2mIAseijt9b+auwIc5TtIdIPS9tJl2q 1J76JB/vhn3PVR3zKOtO47Dh7plwtYq87mtjFXAuJ/DfQIeDRHgPdkyMM8H2xd+ZSwsI 2yfUeuj/VYmnTSbiN0V1RaDXNtNEmQAMRfUteyeV1J/mmIPUPbtFWORBBEiBQ+imIViW pmfg5a6yL3tNs+A+U5PPjO6JEJY8WHke1gFf1bJ8CTreR80HssFO0TVE9PthzVrT+7X1 8tuHvPb0xS620BiW0oIwp1ziAeQNvAG9ysizq1PTOnM/a+h1HAvXoQU5TfseGDlLXUfR NJIA== 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=xXGPMUbpKiggiEUxNjpRRQarAQfKAZLBpXw3h3ikb28=; b=46/OtRSROFXHXYR1yD4xE4VXIBEVSWTmSR/TTNpND/UWb15mT1rg87mMeqLNz4nQEZ NEhQD/MTrXyGOdfBtH+Ff1iwbEEC1tANbJviUQVAPVSm83lCo5MctFyS7obAPud67clc 03HFjRv5xqrEDhImQVJX47aWSv2N4tz+IK5j0uGGgFC1FPilWfGIKXqGotorWDOudmH6 hsjQjyI48qXde1Xz6/rbtIP4ejA3OjLHU64tt/KF7kotSmygTT3Gz0ixfO255UEDLaRq 2A8VhFCufr28d4PInhHIwphJpCxLxaJDOHbQBuPJAfQ4yZTcp/w6nFFXy5iHqmZA9TFY oXjA== X-Gm-Message-State: AFqh2kry98Cj/ohz9MfWQ4l/0IKaiqjBdONPh49FlD0Bq75/k4DZMagC LtqbEoXrKuj6HkJ26Blw7eEfmHzFirY= X-Google-Smtp-Source: AMrXdXsabJWCrkhDTPhsTmjQW7VYdr+EXg2ztaeP+CyjxiLTunxP6SqK+Be/zmOfb3ytLww6/scFAg== X-Received: by 2002:a17:902:82c3:b0:193:3215:960a with SMTP id u3-20020a17090282c300b001933215960amr6507074plz.33.1673328508190; Mon, 09 Jan 2023 21:28:28 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id l18-20020a170902d35200b0019145e3f77dsm7041571plk.111.2023.01.09.21.28.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2023 21:28:27 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) 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:253059 Archived-At: Mohammed Sadiq writes: > On 2023-01-08 04:58, Yuan Fu wrote: >> Mohammed Sadiq writes: >>=20 >>> Now it indents properly when selecting the comment and TAB, >>> but if point is inside the comment, the line indents further >>> breaking the indentation. >>> example, for the following code: >>> /* >>> * Some comment >>> */ >>> and I place the point to be between '*' and '/' in the comment >>> and or somewhere in the "Some comment" string, and then press >>> TAB, the line indents further, breaking the indentation. >> Ah, yes. I fixed that. Thanks for the report. >> Yuan > > There is one more case that's broken: > > int > main (void) > { > /* > Some comment > */ > } > > > Where I expect it to be: > > int > main (void) > { > /* > Some comment > */ > } Ah, right. Now it=E2=80=99s fixed. Thanks! Yuan