From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71225: 30.0.50; [PATCH] c-ts-common-comment-indent-new-line does not behave like c/c++-mode in comments Date: Tue, 28 May 2024 14:15:20 -0400 Message-ID: References: <2561105.XAFRqVoOGU@3-191.divsi.unimi.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71225@debbugs.gnu.org, Theodor Thornhill To: Vincenzo Pupillo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 28 20:16:59 2024 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 1sC1Nb-0004ZP-EH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 May 2024 20:16:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sC1MY-0002NG-Jt; Tue, 28 May 2024 14:15:54 -0400 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 1sC1MW-0002M1-P5 for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:15:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sC1MW-0001Zg-GQ for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:15:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sC1Mf-00070a-Mp for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2024 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71225-submit@debbugs.gnu.org id=B71225.171692014026896 (code B ref 71225); Tue, 28 May 2024 18:16:01 +0000 Original-Received: (at 71225) by debbugs.gnu.org; 28 May 2024 18:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:50464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC1MJ-0006zk-JF for submit@debbugs.gnu.org; Tue, 28 May 2024 14:15:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC1MG-0006zQ-ID for 71225@debbugs.gnu.org; Tue, 28 May 2024 14:15:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sC1M1-0001Wr-8c; Tue, 28 May 2024 14:15:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aETwSvGo1v+Io0Z+UuPGqGKpMUIAS+bT37FxW7ny5RM=; b=mDa0v8zMMelTgZxB4FRW GS3SC9q9vJMNDgBDEnJBGHWcW66MbfKNVGbSgczEXTOXHbd9SUC1vMC6fCa6kvs0Z6J3sx1/yIz3K dqGOej7SGBT495Lst96d3KDKd1SggdXuB7XMJUhPNq3oe5/uUYLoCtvKAip7RyuFo7N/pkRNJRibo F4vHxBO42f56rq0IoSll+66bvZwtS2wZMywHGcOorKWa+JJa3bdo9+1Mn5aJj7q1shaRD7h9Ykumh YdW85K2XwQFmuqYC5yZuFEuQXF/4BHj+hlVOA5EtyexE/mtUAE291yQgG5EmWid0srYRBSlttFgrQ bntxS6HQ2XzRDQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sC1M1-0003sd-1T; Tue, 28 May 2024 14:15:21 -0400 In-Reply-To: <2561105.XAFRqVoOGU@3-191.divsi.unimi.it> (Vincenzo Pupillo's message of "Mon, 27 May 2024 16:09:18 +0200") 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:286107 Archived-At: Vincenzo Pupillo writes: > Hi, > the c-ts-common-comment-indent-new-line does not behave like c/c++-mode in comments. > M-j also behaves differently in different places. > > // M-j wrong behavior. > int test(int a) > { > /** (1) > */ > int a; > > /* (1) > */ > int b; > // test (1) > > int c; // blah blah > // (3) > } > > /* (2) > */ > > /** (2) > */ > > // (2) > > If you place the cursor at the positions indicated by (1) and (2), press M-j the result is different and is different from what happens with c/c++-mode. > > As a bonus, the attached patch also allows single-line comments placed at the end of a line to be indented as in c-mode (as in "(3)") > > Thank you. > V. Adding Theodor in. Thanks Andrea