From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation Date: Fri, 13 Jan 2023 23:53:21 -0800 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21858"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60270-done@debbugs.gnu.org To: Mohammed Sadiq Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 14 08:54:12 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 1pGbMi-0005P2-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Jan 2023 08:54:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGbMd-0006mI-AK; Sat, 14 Jan 2023 02:54:07 -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 1pGbMY-0006m2-IK for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 02:54: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 1pGbMY-0002Pw-9L for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 02:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGbMY-0000TH-4t for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2023 02:54:02 -0500 In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2023 07:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 60270 X-GNU-PR-Package: emacs Mail-Followup-To: 60270@debbugs.gnu.org, casouri@gmail.com, sadiq@sadiqpk.org Original-Received: via spool by 60270-done@debbugs.gnu.org id=D60270.16736828101766 (code D ref 60270); Sat, 14 Jan 2023 07:54:01 +0000 Original-Received: (at 60270-done) by debbugs.gnu.org; 14 Jan 2023 07:53:30 +0000 Original-Received: from localhost ([127.0.0.1]:53191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGbM2-0000SP-HU for submit@debbugs.gnu.org; Sat, 14 Jan 2023 02:53:30 -0500 Original-Received: from mail-pg1-f180.google.com ([209.85.215.180]:37726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGbM0-0000S6-TJ for 60270-done@debbugs.gnu.org; Sat, 14 Jan 2023 02:53:29 -0500 Original-Received: by mail-pg1-f180.google.com with SMTP id v3so16410925pgh.4 for <60270-done@debbugs.gnu.org>; Fri, 13 Jan 2023 23:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=wVc3nMlHELfAffiIrIt9vwUWO4SGPVnxyUrPnWXYruA=; b=TdPQ1ovgROZhCFxmcWQfEdiSu3DkJGs+9apSW4kzihx833o2axBN25z77qYjQLAnZ3 ZacUkj8yYwuzXUfw8f6m7s6PJ0yIIE2zdrFWs+OK9pb/XaL5GJvDN1SdUX1N9hpB6EeZ Puanoc9rLY8Uo8SFNrcEqolBITdcPC+CwnsLxtDdKG/0ych+yxKlR/aCpujPeLZ4xTzD 4zYlk/u1hwSfLzbfzc92LOX+DuVt4eVFJ2KUbMB1jSFro8AgSfwpjALaiBti4VQHyXPU +yYoibSfMOEUSAfU8IYXk1vFYLQ7uLLjz1T3gFnm38p8+TqXYdptXMgyU/jCjkt2f9iX oZjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wVc3nMlHELfAffiIrIt9vwUWO4SGPVnxyUrPnWXYruA=; b=bvgpFCvrMJ7KxE+48Q+tEmqgvaxJhsBXAc3EvQSVNemccnApGcV77cqXB6/YIASzC2 pu4xmCwjV6jQJ0ccjgGkRcmc307P81oWTDZQtKBItaaFEEeZYVEDdXjE5oXn9S5axkvf 4eqt6JmuJoIO/sT2tDSSWD4t54sVngIzqZ8eCC+0P/vRSWoKvdItaLuQTHock/75gYeb 8FbavBgxL+OJsuG962ZHrnjm9usQsRGoMELQC0QO7l9vlOu3q3cwKTr8ke+8AeeNL0M3 I66W84HujGKx6MmaYtlZ0PANR+p9ySoOLGGGfs+KIyI0m20l9RGv2W8d+R8vmKP7edhQ rIIQ== X-Gm-Message-State: AFqh2kpnqCmQEwmsKNBlsPAbAy6yDwujTfQidBgT8RXbDRvNkVTAcnnk CjVICRb6/+NrkuKc0gpxNAc= X-Google-Smtp-Source: AMrXdXuA61F8RXkXuqWinad9/+VwCjHk11BCMRRO0OEuc90RV6ZYa6bLl86wvsBPyEWhLJMycP2Jkg== X-Received: by 2002:a62:1851:0:b0:581:95a7:d2f4 with SMTP id 78-20020a621851000000b0058195a7d2f4mr11901128pfy.9.1673682803039; Fri, 13 Jan 2023 23:53:23 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id z30-20020aa7991e000000b005898fcb7c2bsm10168270pff.170.2023.01.13.23.53.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2023 23:53:22 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) 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:253332 Archived-At: Yuan Fu writes: >> On Jan 11, 2023, at 1:30 AM, Yuan Fu wrote: >>=20 >>=20 >>=20 >>> On Jan 10, 2023, at 2:13 AM, Mohammed Sadiq = wrote: >>>=20 >>> On 2023-01-10 10:58, Yuan Fu wrote: >>>> Ah, right. Now it=E2=80=99s fixed. Thanks! >>>> Yuan >>>=20 >>> This broke the following comment styles: >>>=20 >>> /* some comment >>> */ >>>=20 >>> indentation of above code gives: >>>=20 >>> /* some comment >>> */ >>>=20 >>>=20 >>> Also: >>>=20 >>> /* >>> * some comment >>> */ >>>=20 >>> where I expect: >>>=20 >>> /* >>> * some comment >>> */ >>=20 >> This is easy to fix, I=E2=80=99ll push a fix soon. > > I pushed the fix. > >>=20 >>>=20 >>> If there are ways to add automated tests, it would be nice so that >>> these won't be broken when fixing something else. >>=20 >> I agree. I have been busy fixing all sorts of bugs and haven=E2=80=99t = go around to it :-( > > I added the c-ts-mode tests you had in the patch. I added some more indent and filling tests. Now I think this can be closed, yay! Yuan