From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: norris Newsgroups: gmane.emacs.bugs Subject: bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets Date: Sat, 22 Apr 2023 11:18:25 +0800 Message-ID: References: <83h6tb6q6d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b6cbf005f9e43a89" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25128"; mail-complaints-to="usenet@ciao.gmane.io" To: 62953@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 22 05:19:28 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 1pq3mY-0006PR-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Apr 2023 05:19:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pq3mD-0006B1-1z; Fri, 21 Apr 2023 23:19:05 -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 1pq3mB-0006Aq-1J for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:19:03 -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 1pq3mA-0003GV-Pn for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pq3mA-0007Kh-1x for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: norris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Apr 2023 03:19:02 +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.168213352428162 (code B ref 62953); Sat, 22 Apr 2023 03:19:02 +0000 Original-Received: (at 62953) by debbugs.gnu.org; 22 Apr 2023 03:18:44 +0000 Original-Received: from localhost ([127.0.0.1]:41454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq3ls-0007K9-97 for submit@debbugs.gnu.org; Fri, 21 Apr 2023 23:18:44 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:58708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq3lq-0007Jt-MB for 62953@debbugs.gnu.org; Fri, 21 Apr 2023 23:18:43 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-50506111a6eso4144750a12.1 for <62953@debbugs.gnu.org>; Fri, 21 Apr 2023 20:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682133516; x=1684725516; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=qUsJsJQ5qPAtIlkVMOU5aHQKQHBhKt2npDJ8SIkj854=; b=swzaKpm7Sz9Mox3c2z5k8sc/cgFc11OZLMFy/brqrQbvT2M5aMym/1ApxUbhKUXwj4 fQGLaWqIOvcz4JttjPsol77osE3t42PDOdu0417Wb7AIXnp4UQ59VEJK4kDAI7QTM5NR zT48lXRvO82FnB9zIJi8OrH35uKj46Vd7LJzFECZQOy784fUZH2tp+WlEOYal6p2jLpD kuD7TT01o/HwwEwFkOzd2Z50sRORTTRed4qv9Y53/EGOvuagYphpbyujkkxu7WtOCgNW oIXvkWhc1SceKqA3TnEs+wchM420fACu+i2Pj/AGnVXu0SHi47bhSqxnHOsTzVMLfXAY GXuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682133516; x=1684725516; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qUsJsJQ5qPAtIlkVMOU5aHQKQHBhKt2npDJ8SIkj854=; b=Uh/t6SO+sYT4AzuqVooqq/k5gG46GDuM6sIU5A+cJr7or5qPgqXSexEfiGR7rIN90m MWNezf3HPfFAZfcKUlPQwLLfOvfXRNKAH8dI2nhxI/S5h4SMeIo2mW1Ml6T9yLAFmc5n Rze0nTayRViD257EJFmK9wxkSS/7mFTUqr6Va4/qEsO1FicCzAHAgGejb128pVgFoRit jFRhbvOpcfVcjZqbZiWOH0xnkohTPXZwudlAbVnWq81+GpGh202n/LS17f2BJOi5SnR8 ycuhHWby4XKE3sOYRa+hTqrALHzhpS2CkScLfhtPjwsbPo9WB5LiQs4gwppceoU/p5aI euew== X-Gm-Message-State: AAQBX9f0qfIaMZvl4EbstIp//LfxCN4LrWxaqnfwEllVdXvb3Lp6W+Fk K5nJZDMh4LkW+BQ0r3vj3C2tRIj2yXplwdWhrwF2vTId X-Google-Smtp-Source: AKy350ZldjCn02o47O2cAjig/7ryUfvend8CdZciImh0jNF3RPlg6r3CODXHlBqOS7eulho1GyMR9S9tkR4UFTygR/4= X-Received: by 2002:aa7:cb01:0:b0:502:1d22:4890 with SMTP id s1-20020aa7cb01000000b005021d224890mr5833396edt.6.1682133516469; Fri, 21 Apr 2023 20:18:36 -0700 (PDT) In-Reply-To: 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:260423 Archived-At: --000000000000b6cbf005f9e43a89 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable After adding 'c-ts-mode' and 'c++-ts-mode' to the variable 'sp-c-modes' of the package 'smartparens', it works now. Thanks! Eli! norris =E4=BA=8E2023=E5=B9=B44=E6=9C=8822=E6=97= =A5=E5=91=A8=E5=85=AD 10:59=E5=86=99=E9=81=93=EF=BC=9A > > I cannot reproduce this with the latest emacs-29 branch. > > I just tried with the latest emacs-29 branch, and found that the c-mode > and c-ts-mode are the same when starting from "emacs -Q". > After RET in both c-mode and c-ts-mode, I got: > ``` > if (a) { > |} > ``` > So, extra line might be a feature of a minor mode instead of major c-mode > or c-ts-mode where I was wrong. Then I found that this is a feature of th= e > package 'smartparens' . I'm trying to find why it does not work in > c-ts-mode. > --000000000000b6cbf005f9e43a89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After adding 'c-ts-mode' and 'c++-ts-mode'= to the variable 'sp-c-modes' of
the package 'smartparens&#= 39;, it works now.

Thanks! Eli!

norris <shading.young@gmail.com> = =E4=BA=8E2023=E5=B9=B44=E6=9C=8822=E6=97=A5=E5=91=A8=E5=85=AD 10:59=E5=86= =99=E9=81=93=EF=BC=9A
> I cannot reproduce this with the latest emacs-29 branch.<= br>

I just tried with the latest = emacs-29 branch, and found that the c-mode=C2=A0
and c-ts-mode ar= e the same=C2=A0when starting from "emacs -Q".
After RE= T in both c-mode and c-ts-mode, I got:
```
if (a) {
|}
```
So, extra line might be a feature of a mi= nor mode instead of major c-mode
or c-ts-mode where I was wrong. = Then I found that this is a feature of the=C2=A0
package 'sma= rtparens' . I'm trying to find why it does not work in c-ts-mode.
--000000000000b6cbf005f9e43a89--