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#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode Date: Fri, 19 May 2023 00:23:11 -0700 Message-ID: <089D7600-BFF2-45DB-8CEB-0583603D6063@gmail.com> References: <83353tx58q.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63487-done@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 19 09:24:17 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 1pzuTJ-0000XZ-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 May 2023 09:24:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzuT5-0003tW-Rq; Fri, 19 May 2023 03:24: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 1pzuT4-0003t7-6C for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 03:24:02 -0400 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 1pzuT3-0000x8-UU for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 03:24:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzuT3-0004RA-RA for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 03:24:01 -0400 Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 May 2023 07:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63487 X-GNU-PR-Package: emacs Mail-Followup-To: 63487@debbugs.gnu.org, casouri@gmail.com, mardani29@yahoo.es Original-Received: via spool by 63487-done@debbugs.gnu.org id=D63487.168448101217015 (code D ref 63487); Fri, 19 May 2023 07:24:01 +0000 Original-Received: (at 63487-done) by debbugs.gnu.org; 19 May 2023 07:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:55301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzuSa-0004QN-8g for submit@debbugs.gnu.org; Fri, 19 May 2023 03:23:32 -0400 Original-Received: from mail-pj1-f53.google.com ([209.85.216.53]:47551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzuSX-0004Q9-R1 for 63487-done@debbugs.gnu.org; Fri, 19 May 2023 03:23:30 -0400 Original-Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-24dfc3c662eso2203305a91.3 for <63487-done@debbugs.gnu.org>; Fri, 19 May 2023 00:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684481004; x=1687073004; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vl116f3cEa1L89apLAlS3Tl/5haIGaw4f4HLrG23STc=; b=RxJEfqjcRZp4AxoPpVAXd4dFczvKCAJl/Yz/MhdzDlcWfZIXPuzpF8SyKzWUaGh1r9 F4IrAnGVuCBRIIlsnIRQwHJTMxrlnpKFV7RC8EDmhO53K+RKhvw9njHK7kCYj2ikf+Il vBrw/U1xKbovYbzWuF7lXaj1uYeNm2geMEQneuPKfCPmia4ShfMH1eQlCV1cS3VLyAyl 35op2Ag+6p7tcdL2BkmrZtxYzEbvqMnIMqmlFVFjyJWhYrNWqihnxRKdKRjV3rddmsM4 xvrKowMvuCxFYZvJ/RbyjlZAWBuKyyoGGb/3WNoC8H9UE/NMyGcavWAM6rF+CJ+N+wIp L76A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684481004; x=1687073004; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vl116f3cEa1L89apLAlS3Tl/5haIGaw4f4HLrG23STc=; b=KwTBhZuPHIUtZjX79YXAtPQSCr3nFcWwQAOBEuEppubk/MlcetrU/ZU3NlbOkHjozJ ShyQ0emYTLqLg3aUYxgmXaUsH3ylgiloeZZ6KKhuux6JYqzlQOlYqxa8klLe5Mit6rUW V6nFclIRul+am08SNbAD8BV4pMtP80wyRbb8LFB3Tec1Rhemstyxp6/jl05Axl/nz3L0 oNlZqDSCYnxqyhw9yOuLhtUifQjHK3Ykznrx3kjnKJKtGDWTbGDb1pZfZit5ga9FOZOW 7ci02ZwM0OlJDMo9yFzvK7Xxfg1Ac0wTbeAaMK1nj5oKKq+jhQB4R0P449z2raSQOy+F KnGQ== X-Gm-Message-State: AC+VfDySNLNQvirCj6i4hlosxV5BhhqQNOhJpoqPEzra14gAMBvAKXLw 7fC72pywvp4Sccm8L7I7ZoE= X-Google-Smtp-Source: ACHHUZ5lEOacLozMH1508FUYdppikNcBuupwwQ+UrrFzP3y9UQm4QXfdtung4b1+oX03ElI83uIyEQ== X-Received: by 2002:a17:90b:4d8b:b0:250:ca6c:d7a8 with SMTP id oj11-20020a17090b4d8b00b00250ca6cd7a8mr1273109pjb.29.1684481003722; Fri, 19 May 2023 00:23:23 -0700 (PDT) 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 h88-20020a17090a29e100b002532ddc3a00sm898212pjd.15.2023.05.19.00.23.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 May 2023 00:23:23 -0700 (PDT) In-Reply-To: <83353tx58q.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.500.231) 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:261984 Archived-At: > On May 18, 2023, at 4:12 AM, Eli Zaretskii wrote: >=20 >> Date: Sat, 13 May 2023 19:37:39 +0200 >> From: Daniel Mart=C3=ADn via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >>=20 >> Steps to reproduce: >>=20 >> emacs -Q >> C-x b sample.c RET >> M-x c-ts-mode >> Write the following code: >>=20 >> int foo(int a, int b) { >>=20 >> } >>=20 >> With point inside the function, press C-M-u. >>=20 >> Actual result: >>=20 >> Emacs beeps and shows "At top level". >>=20 >> Expected result: >>=20 >> Point goes to the open { instead. >=20 > I hope Yuan will look into this soon. Thanks for the report. This is due to treesit-forward-sexp not signaling = scan-error when it should. I pushed a fix for it. Yuan