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#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body Date: Mon, 06 Mar 2023 14:57:09 +0200 Message-ID: <83356i82ca.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28052"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61997@debbugs.gnu.org To: xhcoding Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 13:58:38 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 1pZAQH-00074t-MN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 13:58:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZAPu-0005lK-3b; Mon, 06 Mar 2023 07:58:14 -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 1pZAPk-0005jQ-FE for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:58:05 -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 1pZAPi-00085N-VB for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZAPi-00055j-RK for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 12:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61997 X-GNU-PR-Package: emacs Original-Received: via spool by 61997-submit@debbugs.gnu.org id=B61997.167810745519506 (code B ref 61997); Mon, 06 Mar 2023 12:58:02 +0000 Original-Received: (at 61997) by debbugs.gnu.org; 6 Mar 2023 12:57:35 +0000 Original-Received: from localhost ([127.0.0.1]:41625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZAPG-00054X-Uy for submit@debbugs.gnu.org; Mon, 06 Mar 2023 07:57:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZAPE-00054H-6G for 61997@debbugs.gnu.org; Mon, 06 Mar 2023 07:57:33 -0500 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 1pZAP8-00081N-Jc; Mon, 06 Mar 2023 07:57:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=A5R+CsQTiyHJ2UVEyQk28nBgQtHtg43m3sKvDxwdlqU=; b=dRJGSrj3kMix hmFuWt6RBE6C5nj1aWWp9yJv18wH+fqJsb+4D17ztpfxDvgdz8CoLyAJd1PGtpKF3EQHwIx/EbCl9 YGQu1SQETWyskz2jfikXMa3SoPMqGmrQzqSGZMLHkyw9H5roFJ2/aaDTvM5W5JpKUem9oS2rlOQCw eK2xmNWvTilwcuZkH1KDKJ7iId1ZFiU7SEHr7j4lGNgIkTEvrHwaJpbFCSV6vzJUfwnYtPvVQkvMS Xyet1lk7Vm11/tTpLUyveE8o9wOLlvDy7up8eMTYfojissdURYTpLIZ59WOm+5okZ0dyHW4cb1UmY DXF/v5M/jZVcXnjxrb4HUA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZAOz-0008UB-Li; Mon, 06 Mar 2023 07:57:24 -0500 In-Reply-To: (message from xhcoding on Mon, 06 Mar 2023 11:03:51 +0800) 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:257385 Archived-At: > Date: Mon, 06 Mar 2023 11:03:51 +0800 > From: xhcoding > > > When the cursor is at the position of the following code, > pressing tab cannot indent to the correct position. > > int add() { > | <-- pressing tab can not indent > } > > The expected position after pressing the tab: > > int add() { > | > } I think you are supposed to switch the indentation style to bsd, and then it will work. The default is gnu.