From unknown Sun Jun 22 20:55:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61997 <61997@debbugs.gnu.org> To: bug#61997 <61997@debbugs.gnu.org> Subject: Status: 30.0.50; c++-ts-mode;cannot indent in an empty function body Reply-To: bug#61997 <61997@debbugs.gnu.org> Date: Mon, 23 Jun 2025 03:55:55 +0000 retitle 61997 30.0.50; c++-ts-mode;cannot indent in an empty function body reassign 61997 emacs submitter 61997 xhcoding severity 61997 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 02:51:53 2023 Received: (at submit) by debbugs.gnu.org; 6 Mar 2023 07:51:53 +0000 Received: from localhost ([127.0.0.1]:41255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ5dL-000359-U3 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 02:51:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:47392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ1A1-0003qY-B2 for submit@debbugs.gnu.org; Sun, 05 Mar 2023 22:05:13 -0500 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 1pZ1A0-0006cU-4y for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 22:05:13 -0500 Received: from out203-205-221-245.mail.qq.com ([203.205.221.245]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZ19v-0004sw-Gb for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 22:05:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1678071899; bh=BkvGDcfIF97jo2v6HFlO1fehfjWAjKnwzt2qW2SqqwQ=; h=Date:From:To:Subject; b=rkasQYCk2ZdsolU4pBkCzNYKdzuGA8JsF+598ZjsrlOU1NJLTBg7jS8XBCJcvjEt6 lpO2vTMWF9ut0PV4dCC14+WHSGTK3VfvXlyH5YUESTRZ7NWNuRW6JeT4whAZg8sesW gZMtGe3G9QL/1mGCxWXP+cgC9EaVVD7h5WKzkTuM= Received: from XHCODING-PC.qq.com ([39.128.4.18]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id F4B78C0; Mon, 06 Mar 2023 11:03:52 +0800 X-QQ-mid: xmsmtpt1678071832tp9ragfyf Message-ID: X-QQ-XMAILINFO: Mee1Vp/QiDAW/1rrZ3dcLX80i7YUW7JcY+346tk6Hezrr7aa/jBteNaTPhFLA7 A3hyJy/vy3x2dkDagA0icxXRkMBKm1rEQMU20lGaYdsOYTg7MjPV0vZib98nLNkwf7sA0bhZSCBq ssNhM0taTWhtHQZ6mOq58+BiJXohajJiF3qYVjtlK4VNnAQikbZCMVZgSuc3rGs6tfKq7E+Vo8cQ C5Z5lRhCzMUQp3Q6/zPg0oHQMAMpj0JbbTKDufW+ILnkwT7KB5rSf6gRB0Uj/OPE/QC144Ue88eb SlgMvwAKTADXRTH/cjd8ujtxnVX2prW69hEUboMY47CLuSMUCjLNMjL9CgDWP5A7suibZolLvTtT dyqdnM9QMfcDS5k1F9N0trMCgKGDZeCycBUJEW3tM/l0xxTn69M+MmDxbyJlnA0hQxzZvLo9drPj ndb49lAPebDuxMX6YjDRC9LLFIMMRoT7A73CH8tqS/J68YOlNzJcB1G6ao2XxIfX8xSP78xpV3ty Traik6Ul+x30+fWdJkIKSCtO+sgyoviKeI6fCWccT3cd/E4d/RZfzWCXnmHU1ddeHCP/T+5gNGce +CMog8wNG6yIlC8gy9Z+Tku+HNj5NDE+9IpDJh80I/sG/YRVf01gF4asYTaa0T+cwsj0g+fBIt1U JxuUq4dOsZlc/wxc6D95w6B1Ip4wwU4q0ciWD4qwvm7v0Mb9eLAti8Aanouoo1fqwNigltatymzP DwmcRiLRy4QUGopeAGB5Zsl8iwyo0+Epx/jpIsa/OHvLhGqFamd+vX27mmdaZ0PUahrhW8QHZFbC 3leC/tU2I/fHUW0MY6Hm4I++2WtGP7PtrA51uuSYmq5uHABveUKHPmN0VlRl/NoL10HWf4KQrUTl OLHpG3qp+hkOf/1cuOctoktynHbVpyyyDPk2rSBDa49gR8if6E3gcbosD7Lq0KtfeK1HXDVqdu Date: Mon, 06 Mar 2023 11:03:51 +0800 X-OQ-MSGID: <86cz5mmvhk.wl-xhcoding@foxmail.com> From: xhcoding To: bug-gnu-emacs@gnu.org Subject: 30.0.50; c++-ts-mode;cannot indent in an empty function body User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=203.205.221.245; envelope-from=xhcoding@foxmail.com; helo=out203-205-221-245.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 06 Mar 2023 02:51:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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() { | } In GNU Emacs 30.0.50 (build 6, x86_64-w64-mingw32) Repository revision: 6fb8a4dff7ef22f96ebe1a775240617aabac6526 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.22621 System Description: Microsoft Windows 10 Home China (v10.0.2009.22621.1105) From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 07:57:35 2023 Received: (at 61997) by debbugs.gnu.org; 6 Mar 2023 12:57:35 +0000 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 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 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==; 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 Date: Mon, 06 Mar 2023 14:57:09 +0200 Message-Id: <83356i82ca.fsf@gnu.org> From: Eli Zaretskii To: xhcoding In-Reply-To: (message from xhcoding on Mon, 06 Mar 2023 11:03:51 +0800) Subject: Re: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61997 Cc: 61997@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 08:11:14 2023 Received: (at 61997) by debbugs.gnu.org; 6 Mar 2023 13:11:14 +0000 Received: from localhost ([127.0.0.1]:41656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZAcT-0005U6-P8 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 08:11:14 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:52843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZAcR-0005Tt-HS for 61997@debbugs.gnu.org; Mon, 06 Mar 2023 08:11:12 -0500 Received: by mail-wm1-f47.google.com with SMTP id j3so5611202wms.2 for <61997@debbugs.gnu.org>; Mon, 06 Mar 2023 05:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678108265; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=B6lAd2BFonhe6/o5+KhcU0qh/JbK3ZO5Bdn4S1xpf+c=; b=TGAdrmjQXiZMWINMdpKVuGB2qnknhSfSKorOHO2J626I/YSDdWcNTc2qhnCLJN58L6 P5y6pDlJ9efLIgawdmZ6bt04SG7ix7LF8u/yAe82w3Hu1091sbS0AwYdpUc8SbKd/5Ee yXInwpfI8SZcrrvZU/iH8STVHhZScqA2vJF6EnKDm6ymVb58YWZSjian3GV56raeYBu+ hggW3M45d6XePyQ8rcfLPXz6jwdrYC9/zzWhCLJweksxZ7W9qKY1JeW4Ai6kxO3fepKk bPv+a51rqzNWEJhqm1FBQ1xSTY4+BQNMsfoULvLARVHk4LozDhikTyYfgLMA5nXS1Yif JFzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678108265; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B6lAd2BFonhe6/o5+KhcU0qh/JbK3ZO5Bdn4S1xpf+c=; b=LVm2hDx6vU1bTaXJwkteI1hZbbBmW6qiAkgsiSKZpb03xE1aVHu5zKQhyaN47WSkGn 0HexxX14Khbu9K2CoOyFPEVwhbh3okEtPO+Ecj7XSbrAQ+wA7+b+raqVzpVGj0e5JCw4 NBn9cpF1EDQWE98uBm1zb85Ur8+/pePNhehdeoH8PmcVKshDy2H7yhNhoRUprINGCvVp GaWSyWvO0Kf0SOs3yy2p2LPGfUHvslp27IOfj3ZJoXiCBfpvmR0wB3k1AoA11t5JOHyN zUClH11bP4HGweIXy5gmaV8mNn6mVpKslaf6qZ6TkEjeTOu4cuNJuMPgsBDe9QcDzbZf HUTQ== X-Gm-Message-State: AO0yUKW5MeMJXckd1uxtQ1MbM95Z/9rykbX1DVWPUcza9wV0KsTap8hb W3ZmJOPIWNemrkSU5ervbCw= X-Google-Smtp-Source: AK7set+rNMJRkFjIsYQU76q4sVGWArgG5eXWa6m9ihcTMJhv9cfJkfUV42r61clp+N6QiPKoxxMKgA== X-Received: by 2002:a05:600c:4f50:b0:3eb:2b88:a69a with SMTP id m16-20020a05600c4f5000b003eb2b88a69amr9323258wmq.14.1678108265456; Mon, 06 Mar 2023 05:11:05 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id x8-20020a1c7c08000000b003eb2e33f327sm20195463wmc.2.2023.03.06.05.11.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 05:11:04 -0800 (PST) Message-ID: <2c94a05f-9086-eb64-33dc-9f7118bb372b@yandex.ru> Date: Mon, 6 Mar 2023 15:11:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body To: Eli Zaretskii , xhcoding References: <83356i82ca.fsf@gnu.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <83356i82ca.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 61997 Cc: 61997@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 10:45:56 2023 Received: (at 61997) by debbugs.gnu.org; 6 Mar 2023 15:45:56 +0000 Received: from localhost ([127.0.0.1]:43368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZD28-0003iC-J6 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 10:45:56 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:60525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZAfI-0005Yb-C0 for 61997@debbugs.gnu.org; Mon, 06 Mar 2023 08:14:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1678108439; bh=1QKaW495SHrkMWk7Fqdi26ZLZuDdcVi4v130zWjjsHk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=WoJarK3mshRM/6SZju3fO6K3QA9seElrXbfaknsv5YvOJBr+CW3VXlg5QJWciVzCO OlWfH0TxGXjZqs8gTz64UbRiaQbv9MsoBipYunhV7qiD2GPsY/5rY+i31zq311f3os 9xC81iREhqXrfe4cF6EUCJrtyOkFPebi6iKbb8LM= Received: from XHCODING-PC.qq.com ([39.128.4.18]) by newxmesmtplogicsvrszc1-0.qq.com (NewEsmtp) with SMTP id 379B4862; Mon, 06 Mar 2023 21:13:57 +0800 X-QQ-mid: xmsmtpt1678108437t8sqyrr9h Message-ID: X-QQ-XMAILINFO: ONO7+DSOm99HUlTME3ta4myfVR/jEqWcAd7YlLRk+BoeGKt/Na4O/+VcAZVSrU z/A4oXQLh9LbrH27gmJPD3K+EHPIuGtyfyZUGXn5OJglffFANex8SKDPdPnn4oNxYItWRKpR8rMP cfD6JGO/wLdGLVrUVRJMJ123pVDfTn8UIxEkY2eVfBsqrpuzY/AbU/GLTaxFp/NSKLBOynASCUzg +Qo2vA7IUnNzj7alxJN8q47HeZXYhAVV7w46WJS7M22lq4t3b4fzDzhdXhkd1dWtwpJjSMBClU8Q e7s4mxivuLYYOwvbW49V+BnWpHp5iz1KJMqdjcrumI/Z52Jl0znXv+3uUNp1FxpHIN34r8M7X5ga Hy/9dzUaIxpgtlGIdcrG6KeA2PtjjJEgkzFMYlq2NHmuWOQfCf7MXZWMEDgJCNFbs2LkRleJtazM pWK9oYG3gnM+Wg2AJdXnDigqbA20KrcpAkbcNDyiEXf9OF7br1+3PkQmzW9ZBlGVBbYktNcY3kFw ELYdu4LW7fDzg+yUB21LP1wGYgMhMXYAu5cKn1o68Dl6YLAGjpviVYsxK3QIWOCcdyQWgLFDizjf P9tFOFRarmPpF8Zjr6+wCuAwQAX2QQwUlATibv6zkGRi02WSfOZE4ApYUagqd141/FB2txWa45RN ZwQE2YH0SdHDI+BFeKfcPHpqzfoJ32dEqgBKK8ulLq3SlkT6wWo5CFHHYnZd5wDFkF9OX6Z+s4ir pI11a4SXRDn3DbYlbDAJsj5/NalPQrQY6pVVKasVqzOyrXHcOyG2BkUut0/8LXcKEE7lg9BQRba0 QaEUX0LuZbMx4y5abBuuzxz22r/PCWgLjvFvZrnMypEuIBi+s+GQMxw5FdqU5TCdaXvXfadAnmg4 JvfL4UZKGTFV6VJ4wY7GJczWopT1h9C2aQkGewE2J692Aq98jgT14ycGSvRZFaq/VaNnLo2CLCNj 3aNVx4jhyizsIJ3lpxfMKLiTKQjASSr3tyEYu8B9BHeSYrIQO6ra2adtBnC2SmBSysoMpyVIp6Zr qoIk7s3kJi+EjmxCke9vVIyFoYVB8= Date: Mon, 06 Mar 2023 21:13:57 +0800 X-OQ-MSGID: <86a60q58fe.wl-xhcoding@foxmail.com> From: xhcoding To: Eli Zaretskii Subject: Re: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body In-Reply-To: <83356i82ca.fsf@gnu.org> References: <83356i82ca.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, 07 Mar 2023 04:57:09 +0800, 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, > > pres [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (xhcoding[at]foxmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.252 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.252 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 61997 X-Mailman-Approved-At: Mon, 06 Mar 2023 10:45:42 -0500 Cc: xhcoding , 61997@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, 07 Mar 2023 04:57:09 +0800, 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, > > pres [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (xhcoding[at]foxmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.252 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.252 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On Tue, 07 Mar 2023 04:57:09 +0800, 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. Thank you very much, the bsd style is what I want. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 19:45:15 2023 Received: (at 61997) by debbugs.gnu.org; 8 Mar 2023 00:45:15 +0000 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 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 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) 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) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: bug#61997: 30.0.50; c++-ts-mode;cannot indent in an empty function body Message-Id: <86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com> Date: Tue, 7 Mar 2023 16:44:52 -0800 To: Dmitry Gutov X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61997 Cc: xhcoding@foxmail.com, Eli Zaretskii , 61997@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 11 20:53:00 2023 Received: (at 61997-done) by debbugs.gnu.org; 12 Sep 2023 00:53:00 +0000 Received: from localhost ([127.0.0.1]:55453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfreF-0004iv-Uh for submit@debbugs.gnu.org; Mon, 11 Sep 2023 20:53:00 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:53273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfreC-0004ih-VY for 61997-done@debbugs.gnu.org; Mon, 11 Sep 2023 20:52:58 -0400 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so86232481fa.2 for <61997-done@debbugs.gnu.org>; Mon, 11 Sep 2023 17:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694479967; x=1695084767; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=5rD3d/QPHDQquHsjepTUKBmcj1Ed7FItAQfVS9a4ZNg=; b=K3eYm/lAZ2FLyotvOFlQcoRP2QlSgrhdUcrXpxTvIBSAW0Hu+GJ6NnMziFwhGePTDE qVWp9YvV4/cB1fqywT2/pFt1kDNlDbQb65t1YMSo4fImJ8cB8UEzbftdZ58kMkd+Lboq +3mpZ8WkPth3neDkYI0acii2RdKx0tcxS1jhn+YS1f63AcHu3TidhdS0YKUQCwfyaS7N /vq5WsCb81q5RBqWJ3qZirk9+m/9GZ0glFf+a26gGBHl9xH8XhreiRz8SOOAmswaerAQ dpcapng3YGWgeN5PQtenLcMLCHme4K9cQMeizWVrRq+/T7f5EBNTB8jya/2/VPQWqzaL /CkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694479967; x=1695084767; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5rD3d/QPHDQquHsjepTUKBmcj1Ed7FItAQfVS9a4ZNg=; b=wuksJNX2ocHRdF6prGpFWEDG10qWR2EdhHXI3xtz+4PAa2g0mcJK/6XjGX+3UyKMWN 9QlJwBumBUwQoGZlFizX3lHQR5/wFEwToh2fwlhMlMBXDvmHiV3vqrjW8MWeRFccd3jF JypHmQanWWlx4XzvDjSAGXyz7hZCY8GTR6JUG6N90YvpTVXrafh4QgV3+NFL1TU7aXin mDqXcm196RkGzugKYsmj2HAquFzdfSfqJbsflniInbEIGyG6ZJCMW2DDd1hqB9p/0rWM ewy5BbIuBFHbaCtkpTmiW81tOm+EvvLjSEN2o86608atx0Zd8MP9nBCMmSuODWIj9Zby V1sw== X-Gm-Message-State: AOJu0YyOrtvcAndD9rAofvrg0RKJI5X71WN+K8wMRfkgZPZmcMLL61c3 hLU1xKz6GtUl3IGDqbp4HH5oKxnW0NP13mgpYy8= X-Google-Smtp-Source: AGHT+IGmSmaN5fJFKb//kSyf3zDoN2Hn/+GLiqCr4ThYl7OdlW/gy2Lqmtd4Q7mFhCWUeEcN6xy0b+lv5fC/E46pvc4= X-Received: by 2002:a2e:9946:0:b0:2bd:2240:8376 with SMTP id r6-20020a2e9946000000b002bd22408376mr9058733ljj.14.1694479966650; Mon, 11 Sep 2023 17:52:46 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 17:52:46 -0700 From: Stefan Kangas In-Reply-To: <86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com> (Yuan Fu's message of "Tue, 7 Mar 2023 16:44:52 -0800") References: <86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com> MIME-Version: 1.0 Date: Mon, 11 Sep 2023 17:52:46 -0700 Message-ID: Subject: Re: bug#61997: 30.0.50; c++-ts-mode;cannot indent in an empty function body To: Yuan Fu Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61997-done Cc: xhcoding@foxmail.com, Eli Zaretskii , 61997-done@debbugs.gnu.org, Dmitry Gutov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuan Fu writes: > Right. I fixed this regression on emacs-29. It seems like this issue was fixed, but it was left open in the bug tracker. I'm therefore closing it now. Please remember to close bug reports when they are fixed. From unknown Sun Jun 22 20:55:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 10 Oct 2023 11:24:21 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator