From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets Date: Thu, 20 Apr 2023 09:08:58 +0300 Message-ID: <83h6tb6q6d.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62953@debbugs.gnu.org To: norris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 20 08:09: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 1ppNTr-0008Lb-VW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Apr 2023 08:09:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppNTc-0002rY-Dc; Thu, 20 Apr 2023 02:09:04 -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 1ppNTa-0002rG-ML for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:09:02 -0400 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 1ppNTa-0000xy-7S for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppNTZ-0006Gn-LH for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Apr 2023 06:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62953 X-GNU-PR-Package: emacs Original-Received: via spool by 62953-submit@debbugs.gnu.org id=B62953.168197093624089 (code B ref 62953); Thu, 20 Apr 2023 06:09:01 +0000 Original-Received: (at 62953) by debbugs.gnu.org; 20 Apr 2023 06:08:56 +0000 Original-Received: from localhost ([127.0.0.1]:36306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppNTT-0006GT-Mm for submit@debbugs.gnu.org; Thu, 20 Apr 2023 02:08:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppNTR-0006GG-3I for 62953@debbugs.gnu.org; Thu, 20 Apr 2023 02:08:55 -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 1ppNTL-0000uz-Jo; Thu, 20 Apr 2023 02:08:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ceCbIp2Cw3bx0WVQi6La8nJ5WvIjWz+nb/2VkRPPGc0=; b=al6EMzGH3q9W b95rqLNsCQpV9QpEyxBWX3FU5Uk/xAwhFNVFZB2RnnAkUKKf0J5wgTxaSHAMuwTYmWR4xW6+oR4yA 2zEqQ5qlOOTnS6I9rV5WtsVpRgZ1WMo5jPboqSTq/XC2RNSGd7EKfLvaghUu3EZ8aHZ0VyIgyy40A k7Pqwwa540CIoAnoskYzfq5Wi/J9KJg+9SMYQAfzaIDLEay4QHeiwyZe6rNUkzzASE2F0XYQ9BJ6l YPjBzFgYC13OSpPXqrTKvnVW7f1LM6L/Eflt4At5iCkHZdEJBUK32u/FSddpWZ69Pd8XV7wbHdhf7 zcoIQiSsTwKf/dvzmtb0/A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppNTJ-0007gP-9o; Thu, 20 Apr 2023 02:08:46 -0400 In-Reply-To: (message from norris on Wed, 19 Apr 2023 23:02:20 +0800) 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:260308 Archived-At: > From: norris > Date: Wed, 19 Apr 2023 23:02:20 +0800 > > In c-mode, it will add an extra line for RET after brackets. The same behaviour is expected in > c-ts-mode. > > For example(where '|' stands for cursor): > > ``` > if (a) {|} > ``` > > After RET in c-mode: > > ``` > if (a) { > | > } > ``` > > After RET in c-ts-mode: > > ``` > if (a) { > |} > ``` > > Not only if statement but also other cases with brackets want this. I cannot reproduce this with the latest emacs-29 branch. > ==================================================== > In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.37, cairo version 1.17.8) of 2023-03-14 built on spectre > Repository revision: e98f7f8a063a30d1a5effb9e623265019bf2553b > Repository branch: emacs-29 > System Description: Arch Linux This is a month-old snapshot of emacs-29. So maybe the problem was fixed meanwhile. Or maybe you didn't describe all the steps needed to reproduce the issue. In particular, the if cause you show is supposed to be inside a function's body, but you don't show the rest of that body. So please provide a step by step description of the recipe to reproduce the issue, starting from "emacs -Q". Thanks.