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#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body Date: Tue, 7 Mar 2023 16:44:52 -0800 Message-ID: <86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19715"; mail-complaints-to="usenet@ciao.gmane.io" Cc: xhcoding@foxmail.com, Eli Zaretskii , 61997@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 08 01:46:26 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 1pZhwo-0004yZ-9k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Mar 2023 01:46:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZhwT-0005ny-OZ; Tue, 07 Mar 2023 19:46:05 -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 1pZhwQ-0005nP-3X for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 19:46: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 1pZhwP-0005vo-RK for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 19:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZhwP-0003kw-J8 for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 19:46: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: Wed, 08 Mar 2023 00:46:01 +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.167823631514380 (code B ref 61997); Wed, 08 Mar 2023 00:46:01 +0000 Original-Received: (at 61997) by debbugs.gnu.org; 8 Mar 2023 00:45:15 +0000 Original-Received: from localhost ([127.0.0.1]:47498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZhvf-0003jr-2K for submit@debbugs.gnu.org; Tue, 07 Mar 2023 19:45:15 -0500 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:44548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZhvc-0003jd-3p for 61997@debbugs.gnu.org; Tue, 07 Mar 2023 19:45:13 -0500 Original-Received: by mail-pg1-f175.google.com with SMTP id 16so8697447pge.11 for <61997@debbugs.gnu.org>; Tue, 07 Mar 2023 16:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678236306; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=tnIeXr3c27SKOvd0lApHhMDCJSceSRtLdxGUbysGWQI=; b=WqbtrqeNZTNEBy3sVE+9h3kmVNfzq7l1wnFmI3NFBjwM0h70eu60aXFPXpucbhs+da viGhFMmh+vwSBxMvOag1Qqu7TrkNysALPscYQVT6NTaVIiwnGlqTwdnDqOWUf00EJj/E 5GGIsNtq8ptlRLr1PLl+jbkbKKM6hVYlX4CtlwbXtGYU9iR1km5G35IWUwXdPFEeYj8/ Hm+ELm8twFHgMzTtMZDLz5igAAqZS3NAQ/tlKG4x9p/WZUewB0I5PuCaxJj4QdftzLAq dkczUoPhrQn3y6yUgTPiJplpMlclIG1Q/G1ll57Dv3RfYmHg6eZcvHWVXFLKfSeVrzP+ L6pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678236306; 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=tnIeXr3c27SKOvd0lApHhMDCJSceSRtLdxGUbysGWQI=; b=PvOzyq62ofigW4epbFRzHuv1JqN4NE5YK7DokP+8UhQSL1LFjCAF4c1GyAYdezub9y JU72Euu0j7LhVuIQrig4oulIbOCeBHMNgGZ7gah7nlyNwYuAZx8ylHl7MF0tAy5bX21t DVIRpaplwAZ/oMPLSoaMIlyglfHuOK1qTfiyp+8s9fmF+pEcvOs0ZD+VbBPR48h48kU0 c0bLiUHuN4N5Bba8vnojCBfx/KRBFSrVnGfcf3TcXm/ParmQRyhg5wJnn2CPPcypAUQ2 mQvxE78pscClc6VSwOtwK7SYhWhAqZdSItOoB51lnPuHLar66Jgsma9BnBzUL0m1ijOa q/cA== X-Gm-Message-State: AO0yUKW+sARJPYoWV/rlhbZGkfxFbFBJjK0r4/Aucq0wbelVwNTJ3RAF kNj8Fexs2MD0KtN5r3DIAdU= X-Google-Smtp-Source: AK7set9RNBSwxBe0EuU8yQThuHMzUojTduXlMSXOM6zdcmPim/0O7jf1UACAvR/4ANxT5leEATjLzQ== X-Received: by 2002:a62:1acc:0:b0:60e:d286:56a with SMTP id a195-20020a621acc000000b0060ed286056amr14239857pfa.2.1678236306074; Tue, 07 Mar 2023 16:45:06 -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 x24-20020aa793b8000000b00593adee79efsm8453595pff.55.2023.03.07.16.45.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2023 16:45:03 -0800 (PST) X-Mailer: Apple Mail (2.3731.400.51.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:257509 Archived-At: Dmitry Gutov writes: > On 06/03/2023 14:57, Eli Zaretskii wrote: >>> 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. > > Using the gnu style, most of the expressions that the user will type > will indent with OFFET number of characters, right? > > Then it makes sense to indent the open line like that, too. Right. I fixed this regression on emacs-29. Yuan