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#58711: Treesit hangs when calling treesit-search-forward Date: Mon, 24 Oct 2022 13:19:25 -0700 Message-ID: <106B8822-FE37-4590-BC77-5FB24FB0758C@gmail.com> References: <895A3C87-507A-4FC5-8BAE-B138B35CD40C@gmail.com> <46B629C0-1413-41CE-BDA8-CE14C12B4449@gmail.com> <3054006.Zh9iicr411@melissa.local> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58711@debbugs.gnu.org To: Wilhelm Hugo Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 23:18:28 2022 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 1on4q3-0009Yo-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 23:18:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1on3vX-0002rH-Bf; Mon, 24 Oct 2022 16:20: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 1on3vW-0002lv-4T for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 16:20: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 1on3vV-0001ru-S4 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 16:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1on3vV-0000mX-Mf for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 16:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2022 20:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58711 X-GNU-PR-Package: emacs Original-Received: via spool by 58711-submit@debbugs.gnu.org id=B58711.16666427772970 (code B ref 58711); Mon, 24 Oct 2022 20:20:01 +0000 Original-Received: (at 58711) by debbugs.gnu.org; 24 Oct 2022 20:19:37 +0000 Original-Received: from localhost ([127.0.0.1]:49625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1on3v7-0000lp-5x for submit@debbugs.gnu.org; Mon, 24 Oct 2022 16:19:37 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:42663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1on3v4-0000lY-2U for 58711@debbugs.gnu.org; Mon, 24 Oct 2022 16:19:35 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id b185so3719309pfb.9 for <58711@debbugs.gnu.org>; Mon, 24 Oct 2022 13:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=ZRaN1NKmrbpqAYCvkE0MvWqaizwvwsB7Fb8mjk9a4CQ=; b=TAWfej5kzoyXZQ/gbNTuaz+ravV1QFbN5OJ9jhCYxXOV0GICCf1yPuuVSFPvc1lsOB WdzOW1u9ZWF9xDbUh+5VTvKV3x8goYq2SqTsRuvh3taoKJLFKmw2nMxFjAmVGNXTXJ1a IkR1L0FTXxKge600ecYVJcSyvHYky+tFz1R0CLSYCmY4BKs1nxFJd4iLVd9jlDiom6dQ 5tY59EcMfgRaFaUNGtI4XTxAP5XKV1tEOKJ+t19T3Uzq0N6JE0Sp8uUci4YH6xIhRavu bKk43cJ4piXsqoGeFDe1gVygLFvut8qza53/QqUEGyP8cH0jJkVYm7L9i13nco4Kfn2m 482A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ZRaN1NKmrbpqAYCvkE0MvWqaizwvwsB7Fb8mjk9a4CQ=; b=CIWu+/L0mtfuuEMiLJoXaSk+kBoHt2ZxBKQYuShHGrr4JF1k2CLrgzo9sSoRWggWU/ C6DkUKs2DFRBDTxoztWKprnUf8IatJ/WmQjRRpgr6Tfjz5tADjiQmxpgjgrqhQut/J7o A6X6EP0KdqHDm0JhTHbor91pHqt9ATHBjl7NgJmeOvosDyxqnNulz3DxbndrgIBmjzdF BdS9w8Sxp0FSKDPFh5bNBPLQ002Hy3uqL4lABVovK1sX+Dyg8RQI17iiwIOm0//YD1aB OqFNPg/NhijDgtFZyLA27MAuBUIxt8cXHmGy16EVnen9+GFRYNg+5JzfDtmsJcxsZzC2 RHiQ== X-Gm-Message-State: ACrzQf3wz4GA053Wd/VHuzIQdGyVJcA/SFSP40rRoepqfVzNhefCJB0M snNqDlP4ssrz1Ax1zX9MDmi0dCVkra4= X-Google-Smtp-Source: AMsMyM56dIYs9f6BrYlJ2Gjr2BDY/MUyDReHGA9jvn6SVCSgukTkKwKN+UX/FpJRlHyFwUVGm4cQMA== X-Received: by 2002:a05:6a00:1912:b0:564:f6be:11fd with SMTP id y18-20020a056a00191200b00564f6be11fdmr34406757pfi.32.1666642768456; Mon, 24 Oct 2022 13:19:28 -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 z15-20020a1709027e8f00b001868ed86a95sm119498pla.174.2022.10.24.13.19.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2022 13:19:27 -0700 (PDT) In-Reply-To: <3054006.Zh9iicr411@melissa.local> X-Mailer: Apple Mail (2.3696.120.41.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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246123 Archived-At: >=20 > Thanks, I would need some time to have a proper look. The reporting = issue=20 > seems to have been fixed. There are some complications to identify the=20= > appropriate node for defun in elixir as a "call" node might, or might = not be=20 > defun, depending on its child identifier ( i currently have to do a = query on=20 > cycling up the parent ), but will try the respond in more detail in = another=20 > thread. =20 While fixing the hanging issue, I also improved = treesit-beginning-of-defun, which now first goes backward to find a node = that matches tresit-defun-type-regexp, then goes upward and finds the = top-most parent matching treesit-defun-type-regexp, IOW, it now only = stops at top-level defun matches. Does that help with your case? Yuan=