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#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me. Date: Sun, 26 May 2024 11:12:23 +0300 Message-ID: <867cfhxa8o.fsf@gnu.org> References: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71205@debbugs.gnu.org To: =?UTF-8?Q?=E5=B7=9D=E6=9C=AC_?= =?UTF-8?Q?=E7=90=A2=E4=BA=8C?=(Dr.Sc.KAWAMOTO, Takuji) , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 26 10:13:10 2024 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 1sB909-0004Xf-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 10:13:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sB8zw-0000XD-IY; Sun, 26 May 2024 04:12:56 -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 1sB8zu-0000Wi-SU for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 04:12:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sB8zu-0000St-Ki for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 04:12:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sB902-0007mN-J0 for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2024 08:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71205 X-GNU-PR-Package: emacs Original-Received: via spool by 71205-submit@debbugs.gnu.org id=B71205.171671116329879 (code B ref 71205); Sun, 26 May 2024 08:13:02 +0000 Original-Received: (at 71205) by debbugs.gnu.org; 26 May 2024 08:12:43 +0000 Original-Received: from localhost ([127.0.0.1]:38301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB8zi-0007lq-Qt for submit@debbugs.gnu.org; Sun, 26 May 2024 04:12:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB8zf-0007lc-RN for 71205@debbugs.gnu.org; Sun, 26 May 2024 04:12:41 -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 1sB8zS-0000Ld-2y; Sun, 26 May 2024 04:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aIdWmajKqFG7gtt0WVtIsIAibsPQdZfXKc/rh1L9BkM=; b=KfHXZ9b30yYHkab1IZfm XfmFD64qTht8DRoJZqSblhSCOyfRhZu49kIhSQ0ooS/zToXLZDIBe3Axq1C19K0HCqoqfEV3nA/d8 pXQ1LU6TiDxfiMt0jd5QyupeX7QW4feNFYA4s+sn7DpXzcB9pGqMlT0CzrFIICCBaIDOZr/RCul9v aus5358r+coFeq1XzlLpndQWoHC92W1Ps86y2+GWOUSgUCBVxvwkNuJoYiFGa7t+kA147ha8sh1oj vscHQIeFJ5HcPu/hM4Ls6U7qEGWAySHwfoSvOFJTGM8QAY5DaIbmzD5Y108ZJdulAVaHrK3GjkjZ7 Kx3TIebCu/j42A==; In-Reply-To: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@gmail.com> (kawamoto.takuji@gmail.com) 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:285932 Archived-At: > Date: Sun, 26 May 2024 13:32:37 +0900 > From: 川本 琢二 > (Dr.Sc.KAWAMOTO, Takuji) > > 1. Start emacs. > 2. Open the C source code file and write the following content. > > ----------- c source code file begins ------------- > void test(void) > { >   do🔳 > ----------- c source code file ends --------------- > > 3. Place the cursor after `do` and press Return. > > Expected behaviour is automatic indentation. I want to move the cursor > to the 5th column of the next line. > However, the observed behavior is NOT indentation. The cursor moves to > the 1st column of the next line. I think this is because the above source code fails to parse. If you add a closing brace after the "do" line, and then repeat your recipe, the cursor goes to column 3. Yuan, can you please look into this?