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.devel Subject: Re: Tree-sitter modes and nested functions Date: Mon, 5 Dec 2022 12:56:59 -0800 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="24232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Jo=C3=A3o_Paulo_Labegalini_de_Carvalho?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 05 21:57:46 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p2IX4-00065p-0r for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Dec 2022 21:57:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2IWQ-0004EI-Pe; Mon, 05 Dec 2022 15:57:06 -0500 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 1p2IWO-0004Dq-W3 for emacs-devel@gnu.org; Mon, 05 Dec 2022 15:57:05 -0500 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2IWN-0006vK-IG for emacs-devel@gnu.org; Mon, 05 Dec 2022 15:57:04 -0500 Original-Received: by mail-pg1-x533.google.com with SMTP id h33so11540508pgm.9 for ; Mon, 05 Dec 2022 12:57:02 -0800 (PST) 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=pTkGyhX7QgpggAk4wuPl/r+jff1A1wfz89Vr6EX6hLw=; b=Dc5G4OY0Z2BD3rkqSR0/DoKSib3w4+2alPcAqysPWM4QeYLnNEam6ZcRf850VE+7b8 /Oi5gV+t+zPjv+qiiUmKF/qs2QtagzXmZhVikOEof//kmFwqU/8eENJ30skJUZecNMsk AFweCDIo+c+DKc6ztJGE5vHkw0ksQyp28vTkxsfOW8jeMYTh1UXjnIpVFgUo56fnRJq4 eE7ZlwuW1TI7V1PVjVkCEvtHLUx6x1rX3qKNBwGenBdloZtdalDI2GLmtLpLjanuG6+H NP+cUBY98+OIg68vnh4SPZr+btvZUb+sq7i7DXcBbUt5qFDaJoy2Qv5Ri6sE64BSAbso 8HOw== 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=pTkGyhX7QgpggAk4wuPl/r+jff1A1wfz89Vr6EX6hLw=; b=p3eYpGkUVL8Laeq8i9ntG0BPCEMOxNflN6uXzvN8DwPK7ygkOT81DcXPhsFKHfsrQY 5xQbJT6+8YFDD411AhNyl3YFSXgun021+8da1jhIjsN4/lwEySMJcJ00aetsYuXzixkR +qeKW+LplDit/BbaTSYIHYCneTcklh8KP2UDeZM6U7TczwL7yBZ7IXiLfsr2Y8dR/yai WeWX7preURvvusLCm3hgfkO5RYfI6w0a3uP0LbXyavcEWBbgiS93TlSQ7Lai6O3yFLr0 Ugz+/8ne+jngX/gbtMmkE9WgXa7ppuwPeu5Nn4Ii8bcAWaeSz7JhoN5x2PES5MfS05ix 0R4Q== X-Gm-Message-State: ANoB5pmV8UHb2EWiigajcSFd7zhzvi/u0FdwYPpxZs91oAohRxaUSIFP gFtX86+SiLJPQYq9UZmzHQI= X-Google-Smtp-Source: AA0mqf7tYXagwPcg1I8SJicLWludIHcNQFrBIBURUCv+tY8GmbRSVaMw6ryWN4HSyq9Lx0WpuTPGqQ== X-Received: by 2002:a62:be08:0:b0:574:26df:aac2 with SMTP id l8-20020a62be08000000b0057426dfaac2mr63285598pff.46.1670273821734; Mon, 05 Dec 2022 12:57:01 -0800 (PST) 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 123-20020a620581000000b005747b59fc54sm10620080pff.172.2022.12.05.12.57.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2022 12:57:01 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=casouri@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300941 Archived-At: > On Dec 3, 2022, at 12:00 PM, Jo=C3=A3o Paulo Labegalini de Carvalho = wrote: >=20 > Thanks Yuan. >=20 > The word forward made me confused but the behavior is described in the = docstring. >=20 Yeah, we have to choose one way to traverse the tree and that=E2=80=99s = overall the best way for treesit-search-forward=E2=80=99s purpose, I = think. Yuan=