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: Mon, 16 Jan 2023 00:24:56 -0800 Message-ID: <3F5A175C-E795-4371-B698-851E64408F8F@gmail.com> 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="1303"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60270-done@debbugs.gnu.org, 60270@debbugs.gnu.org To: Mohammed Sadiq Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 16 09:26:16 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 1pHKoq-000052-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Jan 2023 09:26:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHKog-00038E-Vn; Mon, 16 Jan 2023 03:26: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 1pHKod-000370-Ak for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 03:26:03 -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 1pHKob-0000cS-Qv for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 03:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHKob-0006Mh-N1 for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 03:26:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2023 08:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60270 X-GNU-PR-Package: emacs Original-Received: via spool by 60270-submit@debbugs.gnu.org id=B60270.167385750824395 (code B ref 60270); Mon, 16 Jan 2023 08:26:01 +0000 Original-Received: (at 60270) by debbugs.gnu.org; 16 Jan 2023 08:25:08 +0000 Original-Received: from localhost ([127.0.0.1]:60379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHKnj-0006LN-LD for submit@debbugs.gnu.org; Mon, 16 Jan 2023 03:25:07 -0500 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:46691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHKng-0006Ki-Tg; Mon, 16 Jan 2023 03:25:06 -0500 Original-Received: by mail-pg1-f182.google.com with SMTP id d10so19120626pgm.13; Mon, 16 Jan 2023 00:25:04 -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=DnswnwBGF5zVhX2jLM4WPTzz1WvOug84niVGBoz0dpQ=; b=L0v/gk3DUEitNzqCUNHRykJxPjN6q6W9qZXQLDhGIm66xTCqJo2QqUFGmZbCQVCJM/ KwoEmCz4OnSsWsyJSupxNTcWh3qTiek/4HzIZ3G0eYLXI3ANpkrVU7hz8VBkHm3bpOTD 41Fdz6qKjTDcN96qBoZAEbBwFUx9H/YEFlaNfpHzMT6IXDqiIYFp4dpj6bS2Wp8L/Ffb I7MJ0QOE6SBcMUS4FU1aqMSJyp7t04C0DLK2f5fEXfUNUf5KWAqGK5mtKY5fK4E8xSWS TTQfBHsQGmZ1u0Vuz4AyeuYLHx61G8tgcTMgZvxvy7lKmD6UkKVbcfoDt38QqTMn0QL+ 365g== 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=DnswnwBGF5zVhX2jLM4WPTzz1WvOug84niVGBoz0dpQ=; b=pfg99cTwiFSuhwLF6zVUOSgizxrFHLwdXMZX2xgVGDytoAXeiix8MX0ur2W1g/ALhb PBg9D/anrlXF/U2entRxfnejRWDNudlMmZHw9+yinPyJ5Tmoedfj/BZEPi7YQHyGxZLb GazVOs9lseHPyKT78M0ipe0IvWX/XL84zpM8HImY+C+nP5O4l1lEEY2UgTgrQuDX7V11 5WHidFEs7rjmdrO0xeYW0BhijgmgW1OYVV/iT1a0cxO7JvDB4D4CAtEQ8l6htsce3g0V 5tCA1cmkqoB6Y9Or7fAhcHuCpwnn7XPhFia0Rspu6DVWP27qkRwvu38zptr/iEjbW1RN 9twA== X-Gm-Message-State: AFqh2kpcQzzZqK+EiRk7Sskc3of+ismTojwDSItmNh6c/mcAweg1YU9N 0XKFAhNNEia0CXeWzBf7TBQ= X-Google-Smtp-Source: AMrXdXsxrFBU1xVF2fJ8EsDMqSaPaIVrSs+RfwHSdpbiAemkdtS+9kVvsmPz4XXAHTHCqrhxTVH/1g== X-Received: by 2002:a62:1887:0:b0:582:5886:e1b7 with SMTP id 129-20020a621887000000b005825886e1b7mr48755741pfy.14.1673857498770; Mon, 16 Jan 2023 00:24:58 -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 e30-20020a056a0000de00b0058d54960eccsm2920919pfj.151.2023.01.16.00.24.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2023 00:24:58 -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:253471 Archived-At: Mohammed Sadiq writes: > On 2023-01-14 13:23, Yuan Fu wrote: >> I added some more indent and filling tests. Now I think this can be >> closed, yay! > > > Thanks, Looks like almost all issues has been fixed. I found one more > case that this fails: > > int > main (void) > { > /* > line one > line 2 > */ > } > > In the above code, if I select the whole buffer and indent, line 2 > doesn't > indent Ok, that=E2=80=99s not due to incorrect due to incorrect indentation = rule, but rather the indentation function. Anyway, I fixed it and added a test. Thanks! Yuan