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: Fwd: bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets Date: Sat, 22 Apr 2023 10:59:07 +0800 Message-ID: References: <83h6tb6q6d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b435a505f9e3f54f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21095"; 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:00:27 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 1pq3U9-0005Oe-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Apr 2023 05:00:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pq3Tr-0001FP-7J; Fri, 21 Apr 2023 23:00:08 -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 1pq3Tn-0001F7-L0 for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:00: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 1pq3Tn-0008L0-3O for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pq3Tm-0006rw-Jh for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 23:00: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:00: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.168213237026337 (code B ref 62953); Sat, 22 Apr 2023 03:00:02 +0000 Original-Received: (at 62953) by debbugs.gnu.org; 22 Apr 2023 02:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:41446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq3TG-0006qh-CG for submit@debbugs.gnu.org; Fri, 21 Apr 2023 22:59:30 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:47606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq3TB-0006qR-5L for 62953@debbugs.gnu.org; Fri, 21 Apr 2023 22:59:27 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-504efe702d5so3385510a12.3 for <62953@debbugs.gnu.org>; Fri, 21 Apr 2023 19:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682132359; x=1684724359; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=svyy/7yyHTM94+xCosRE3WyYbPYqhrJ/b/nzNZWJm5s=; b=S5Z5cS0VHPyHoTBzGJZHcmRM+QI+L0p4IvakF5Gc/qisXXWPzorF0uurcPWx28BD9X NYHTX9wXreIGCgGOBfR5hN+zC/Hxb1ecEHYga4FbJfmEL+3V0/zIddFol7yD0Sw/cxyN SpNV4i0I0qKawNtQ+NEf159MQRxV1ppVZVc3/t4++CWK4PoZHz81jE582OBlo8kG5LR9 YR4K/BDZ699g83GCOWXwgB0Nru9UQ8PdpWyiKRw4J7M1apJmvFJSw/p372sOsJRVtkWk YBbcOfzmpN6/3gT+JzuS9bUTRh5Ky2DDXTbvSjK6vSW8FKFyMWI4wS0PPch3tfv2na6Q GpDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682132359; x=1684724359; 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=svyy/7yyHTM94+xCosRE3WyYbPYqhrJ/b/nzNZWJm5s=; b=OI/als4v3daP0H66Ynl3d/m43mYpoNW17NkLvnxThMLEX4+nXVrANv9ZYRSiCWujrA u1EMWsqjWOdxfeGKeNXT/zuu7EYZQoXGIM5XxzWEHxJ9KPq5wjx8ieIL0VsJkzdxePXr bswY4xGdZXKyzLdrxU/Lfx28CVnV57Nd8/EbbQGNux3D9yI2kprcJeJAFh5mk7CErOVt XclvBti4aZD4xF0en6Z4/rUji7TOex3qBOUENhkyHlcdNTyGdByTJ2D7Ipu9uI5msH09 AoGaXyVzh+2vRLG2UsdOHTZX0EMUHqv37lv7I0B9tG40WnO1gK4iymj/JKTmb3jJ6BOl 13Ug== X-Gm-Message-State: AAQBX9f6uZMmn1cw2fqi9oLqAYLCLX+dEUM5/XUFfjQsQu1V3hDfqXgz OULWm/yE0z2o2Ypah2xYtep+zrDriiEkEQyCGj/dMGuX X-Google-Smtp-Source: AKy350bIy8/V4FESeOltfpv3jql0gherD9DEQT0dUbKWis2S+0LefUFx6BvD178u8T2iNN9uGBD+IdEYvzIDgbF5s9I= X-Received: by 2002:a05:6402:211:b0:504:8929:71ca with SMTP id t17-20020a056402021100b00504892971camr5789387edv.6.1682132358672; Fri, 21 Apr 2023 19:59:18 -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:260422 Archived-At: --000000000000b435a505f9e3f54f Content-Type: text/plain; charset="UTF-8" > 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 the package 'smartparens' . I'm trying to find why it does not work in c-ts-mode. --000000000000b435a505f9e3f54f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> 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=C2=A0
and c-ts-mode are the = same=C2=A0when starting from "emacs -Q".
After RET in b= oth c-mode and c-ts-mode, I got:
```
if (a) {
|}
```
So, extra line might be a feature of a minor mo= de 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 'smartpare= ns' . I'm trying to find why it does not work in c-ts-mode.
--000000000000b435a505f9e3f54f--