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#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation Date: Sun, 08 Jan 2023 15:32:22 +0530 Message-ID: <606e8eb05e599b63afb06db5450f9ffc@sadiqpk.org> References: <308A0BC8-C223-42F2-A3B6-C6F8B53652D5@gmail.com> 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="27788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Eli Zaretskii , 60270@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 08 11:03:21 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 1pESWP-00074e-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Jan 2023 11:03:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pESW8-0004SB-IH; Sun, 08 Jan 2023 05:03:04 -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 1pESW6-0004Rp-FG for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:03:02 -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 1pESW6-0000gd-7T for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pESW5-0002mE-Rh for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mohammed Sadiq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 10:03: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.167317215110633 (code B ref 60270); Sun, 08 Jan 2023 10:03:01 +0000 Original-Received: (at 60270) by debbugs.gnu.org; 8 Jan 2023 10:02:31 +0000 Original-Received: from localhost ([127.0.0.1]:59914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pESVb-0002lR-HP for submit@debbugs.gnu.org; Sun, 08 Jan 2023 05:02:31 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pESVZ-0002lE-4g for 60270@debbugs.gnu.org; Sun, 08 Jan 2023 05:02:29 -0500 Original-Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 4E4FC40002; Sun, 8 Jan 2023 10:02:22 +0000 (UTC) In-Reply-To: <308A0BC8-C223-42F2-A3B6-C6F8B53652D5@gmail.com> X-Sender: sadiq@sadiqpk.org 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:252893 Archived-At: On 2023-01-08 04:58, Yuan Fu wrote: > Mohammed Sadiq writes: > >> 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 */ }