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#65810: 30.0.50; C-M-f and related functions error out in c++-ts-mode Date: Thu, 7 Sep 2023 16:12:13 -0700 Message-ID: <1BAF8D5A-DDC9-4C36-B5E4-0C276142A186@gmail.com> References: <87bkedlvs8.fsf@gmail.com> <83wmx1yhwi.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="27861"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 65810-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 08 01:13:21 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 1qeOBc-00073Y-Lb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Sep 2023 01:13:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeOBN-00050a-Vs; Thu, 07 Sep 2023 19:13:06 -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 1qeOBL-0004y8-Qh for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 19:13:03 -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 1qeOBI-0000gY-JJ for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 19:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeOBK-0008Qj-5k for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 19:13:02 -0400 Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65810 X-GNU-PR-Package: emacs Mail-Followup-To: 65810@debbugs.gnu.org, casouri@gmail.com, joaotavora@gmail.com Original-Received: via spool by 65810-done@debbugs.gnu.org id=D65810.169412835932369 (code D ref 65810); Thu, 07 Sep 2023 23:13:01 +0000 Original-Received: (at 65810-done) by debbugs.gnu.org; 7 Sep 2023 23:12:39 +0000 Original-Received: from localhost ([127.0.0.1]:41719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeOAx-0008Q1-D4 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 19:12:39 -0400 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:55644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeOAs-0008Pj-3W for 65810-done@debbugs.gnu.org; Thu, 07 Sep 2023 19:12:37 -0400 Original-Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-68a3b66f350so1356096b3a.3 for <65810-done@debbugs.gnu.org>; Thu, 07 Sep 2023 16:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694128346; x=1694733146; darn=debbugs.gnu.org; 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=HcB9ilHipvoVUo4Xol0tWxuxosQGJL//FoGK1ejxewo=; b=hcp0gzg+/UFkHfH0QB+nAVaVfEpjZpu5gXmv1jQj5hW4dL1l/D0n+CFLDb6SbIMNS3 eE7mBi/oADlC8ZAolVU6xdaF80tRSZRppXdt46YeBgegA/lWdtGtDQ0AYrD+UumjaLsp G1uD+nt90QalBSSJB6zwvQSmjjb70mKf3E7/BBKTo9fSa6bSTfYcGJ9xINua1mFJFQ/B G3YNqSwEeORiOUxvbiZNt82UOHwgezNaW/dJ+QeOH24Ij9f2Qzi/kBKdA59sElktuJCn ufU5AV1nZgkc/9Msuu/WUK5jE0nxOxsDDmvD8GCsX0Q8C8WFTNqYiJQouNbI7jTlWOrX DUSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694128346; x=1694733146; 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=HcB9ilHipvoVUo4Xol0tWxuxosQGJL//FoGK1ejxewo=; b=hjSRmL44vuHTIiFLuiwCD4ydG9OzX4ljOSsCicvP/YL7r6cdFuAP1FsKdZkikX7ks5 IME/gQbdVz1k8ccd+6BE6xxK/7ccd/lraj6f+9QeH14V1b0uNVXt0wz57MBba6aTGwkY MNIRgacPkxvQ31Fcm9DoGQiYXuCfsvFj8LsE5hl2qop+3QGObkQEQq7OShbH5TPNwRFi mYJ++geBY8/XqBU+ww3q3tANOTgX8+gZEUuqHhOBOUD88XLRiWKXA2KV99pW732vPl36 na1xa/B5eUivUC9FcS5AHqplolvdRVpgpB7Xq87wxSkd3OiiZ8OaEB3YFtfH67fIZ/04 IWNQ== X-Gm-Message-State: AOJu0YxfmC+KwbDWpu5mf8vfiNrrjDK5Ald4fsulmReuL5PThz8VdeA4 hyuX46mhPRninvpB8lRyL+k= X-Google-Smtp-Source: AGHT+IHiBNWGDz8Ub0XrCN6rAc0UjMxlUcku08R6iBLxtzyvA4Tt9Txsugu+myOuMYT3ucCAzSuMSw== X-Received: by 2002:a05:6a00:2d1c:b0:68c:3f2:5ff7 with SMTP id fa28-20020a056a002d1c00b0068c03f25ff7mr939724pfb.1.1694128345767; Thu, 07 Sep 2023 16:12:25 -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 s16-20020a62e710000000b00689f3d73639sm215824pfh.65.2023.09.07.16.12.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2023 16:12:25 -0700 (PDT) In-Reply-To: <83wmx1yhwi.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) 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:269705 Archived-At: > On Sep 7, 2023, at 11:09 AM, Eli Zaretskii wrote: >=20 >> From: Jo=C3=A3o T=C3=A1vora >> Cc: eliz@gnu.org >> Date: Thu, 07 Sep 2023 18:48:07 +0100 >>=20 >> Now just type C-M-f or any C-M-something command. >>=20 >> Debugger entered--Lisp error: (treesit-invalid-predicate nil) >> treesit-node-match-p(# sexp t) >> #f(compiled-function (node) #)(#) >> treesit-node-match-p(# = #f(compiled-function (node) #) t) >> treesit-node-top-level(# = #f(compiled-function (node) #) t) >> treesit--things-around(5 sexp) >> treesit--navigate-thing(5 -1 beg sexp restricted) >> treesit-beginning-of-thing(sexp 1 restricted) >> treesit-forward-sexp(-1) >> forward-sexp(-1 nil) >> forward-sexp(-1 5) >> backward-sexp(1 5) >> funcall-interactively(backward-sexp 1 5) >> call-interactively(backward-sexp nil nil) >> command-execute(backward-sexp) >>=20 >> simple.cpp can be any C++ file, from a simple >>=20 >> int main() {return 0;} >>=20 >> to a completely empty file. >=20 > With the above sample file I can indeed reproduce the error. But not > with real-life files I tried, where functions are larger and there's > usually more than one function. >=20 > Yuan, could you please look into this? That=E2=80=99s due to some new stuff I added recently. I=E2=80=99ve = pushed a fix to master. Sorry for the chaos guys :-( Yuan=