From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yang Yingchao via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65885: Acknowledgement (29.1.50; wrong behaviour of treesit-beginning-of-defun in c++-ts-mode) Date: Tue, 12 Sep 2023 12:41:32 +0800 Message-ID: References: <871qf4doit.fsf@qq.com> Reply-To: yang.yingchao@qq.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4274"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.6; emacs 29.1.50 To: 65885@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 06:43:14 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 1qfvF3-0000x8-Gr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 06:43:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfvEt-0004qb-L6; Tue, 12 Sep 2023 00:43:03 -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 1qfvEo-0004q2-2f for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:42:58 -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 1qfvEn-0001SR-Q3 for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:42:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfvEs-0007ak-6A for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yang Yingchao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2023 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65885 X-GNU-PR-Package: emacs Original-Received: via spool by 65885-submit@debbugs.gnu.org id=B65885.169449375329127 (code B ref 65885); Tue, 12 Sep 2023 04:43:02 +0000 Original-Received: (at 65885) by debbugs.gnu.org; 12 Sep 2023 04:42:33 +0000 Original-Received: from localhost ([127.0.0.1]:55664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfvEO-0007Zj-T4 for submit@debbugs.gnu.org; Tue, 12 Sep 2023 00:42:33 -0400 Original-Received: from out203-205-221-235.mail.qq.com ([203.205.221.235]:42134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfvEJ-0007ZM-5N for 65885@debbugs.gnu.org; Tue, 12 Sep 2023 00:42:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1694493732; bh=oRFSBqHveYWS5AbLM3eQBX/pYrsiqsPiBhD4aTM0ols=; h=From:To:Subject:Date:References:Reply-To:In-reply-to; b=D6QjRokdrUM4pKJoCWyQFWZ4O8bOtdaNTtzry+0B8a3rxUDjL0LQXQdxaRft8utd6 xLpQ/B8akNDz7ZWE5DSxm1dmoHxQBcREMSO1X6JJR0RTirTkffJStalTlmxwU/Gg8j 1Rc6YnmOYaXXAZ0DaMGk+ckgmaM9GgDmN4RcmY4E= Original-Received: from tdesk ([60.26.149.220]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id A8B18C88; Tue, 12 Sep 2023 12:42:11 +0800 X-QQ-mid: xmsmtpt1694493731tlejm8g2s X-QQ-XMAILINFO: MziGzrjZeogZU2wq9H5vKaqqI9XFdcaLLA/sk/QD9twHFwcjOk2B/GFqCIN8qU sGVfikzq0iarvMrrrptEdPSDnv6sLZUKn5NNADsYaM25zkk4l/6OwgpTDdftbdHDMm7yzCUIPp0g +9lPURyA9dWrppF4FK3Bvr7k65fJx1V6TxJdl4C6ogBCT0Nj+y2W7b8dUC9thuJCu9umY8Hnpkdh JsAuxxj1TVGGIfwXMAwp1p5mM/JOq5iMzKbJpnS4/pLmmXkE8JSd0J1GIhmk7BrpHPPththfQCgd cSpJVq2PQDgb1xThXFC/KOHHQ3hdL1LLQsaMucGQ/2OVyhid30AVJdM1Spy8jYNqlWOHLRUfEVVL iwGX9UZVGI+pmnQKpV1B3jgrKBoeMVAcwYTFMw6wPvxNPObAvgcV/zxZXerK677A3PkYpuvaRw47 kyyZoKBUWvfHxVC3/RZ3+JpisCOSoFHgQ7XaWMiv+Yj9Y9/sJ0vHWJbgHxB6iewbzvCCDHAsrlmn FqDVvPVkxxSG1GT4nl/n76Z4UoSnnM3c6bXcM5CPjSB4OXlxN0wvfbKe2nzL+tPlRtsQrXm/fZV0 mDoBfilEA2hHeBmeoXu9mH6jYlJT9xf21C1lHrvYvZpfFKyFqoUNnthRL7hO4whUc6i1CPHR8TgM SQHyD+6ooJajYi5EYAlfww1caSlmWnPZREY1HhX0fqbMMR0/AbtKc4TdUInCXIVFK77GL797H4H0 4wxRKr+M2hpuTvXpqeraapCMswfrKo8SBZUhxkUIt9uYTbPawrC9QXxNarYMNGP3PkqUme6XP2+O 5IlQfAY3Jtde7Vqai/iWvcJrEyaMrEyID644niDN X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= In-reply-to: Original-Message-ID: <87zg1sc89p.fsf@qq.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: , X-ACL-Warn: , Yang Yingchao 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:270136 --=-=-= Content-Type: text/plain Content-Disposition: inline It seams that there is an issue with the behavior of `treesit-beginning-of-defun` function in `c++-ts-mode` when there are static variables present in the source code. For instance, in the provided code snippet, if the cursor is initially placed on the line containing `int b`, and the "C-M-a" is pressed, the cursor is positioned on line 4 instead of line 1 where the beginning of the function is located. ,---- | void func // c-ts-mode: treesit-beginning-of-defun stops in this line, RIGHT | { | char * msg; | static int a; // c++-ts-mode: treesit-beginning-of-defun stops in this line, WRONG | int b; // PUT CUSOR HERE | } `---- it works in c-ts-mode works normally. Regards. On Tue, Sep 12 2023, help-debbugs@gnu.org (GNU bug Tracking System) wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 65885@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. Regards, -- *Yang Yingchao* --=-=-=--