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: Plug treesit.el into other emacs constructs Date: Thu, 15 Dec 2022 13:23:45 -0800 Message-ID: References: <87wn6whete.fsf@thornhill.no> <87r0x3gnv5.fsf@thornhill.no> <04BB786A-3ED1-4918-8583-17AA01A1E453@gmail.com> <4E3940CA-67A6-45B7-8785-4E60FDECCDFB@gmail.com> <0CA63C32-432C-42C5-BBAD-C6E1A7CE1806@gmail.com> <96DD7ED2-231B-4017-A2E6-D1910DDBF2B6@thornhill.no> 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="20583"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel , eliz@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 15 22:24:44 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 1p5vie-0005BS-F8 for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Dec 2022 22:24:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5vhp-0006Ur-Sd; Thu, 15 Dec 2022 16:23:53 -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 1p5vho-0006Uf-FA for emacs-devel@gnu.org; Thu, 15 Dec 2022 16:23:52 -0500 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5vhm-0004b4-Ri; Thu, 15 Dec 2022 16:23:52 -0500 Original-Received: by mail-pj1-x1035.google.com with SMTP id k88-20020a17090a4ce100b00219d0b857bcso446584pjh.1; Thu, 15 Dec 2022 13:23:49 -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=HNzHoDYqpxWgHo3VaHzYp/KCNqMaoboJ+DFR+xXN/ZU=; b=J92kmhY3v1EIedBgHDfzAPOgTjstmkhqa+47Dmx/m3ajzWBLYyypqNltXFz6an9on7 yHNzntJS2/jxxrvsLmzCovv/SgcLbyBJQnFHgfQwLfraZFbZPIVc4JlLjOLH93e7717y cTsDjP/xRbgILTs/lOcsuOpc+2P1zb0UL2zKHj7bQnhbE6I/01YyLalYhebJ4rlfOl4a cMvKbxADkn2gRHVdlRzxtHo+LFeQscYwX1ZZdvyNH35UTpMZez5VvtS8ZnMgQ3o3YJhZ rQbFXQQ/fWUieOQoht1AjE6LNjD7BNR3M0wHhKqqqcfDCrvauHnz/9jvAFxQBOcAw6V/ K5nQ== 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=HNzHoDYqpxWgHo3VaHzYp/KCNqMaoboJ+DFR+xXN/ZU=; b=6FgOtTKpyr/w4Ur+K7f8vJnHtuGUAkdExaXxUKACjoUSHtEGditMlfdP7NFOnqLjWa srv1Tl2VhwOkXB71IetRUj1y8xVZpM+fm6UVPD2cz/CBLAEfOHRxAnYSq+jd8sXvQHcz VvOo9OVqgqgdnwiItGPjZzb4G/MeuHBLgnjYmiMLwAsm9tQgQwZUlxg1AjZf4CBO7GKd Hzr8DkHa9xpyO/5WaH2GFKzFyo8VoMHh32g6HGFxwlj7Wv7o5ccaKGqOos7YjwEaC4tP kGe1w8stxqQGaakk5TAbehZDaqMhDAAzUwyxfoNxKbw6xhNieVUIg+UL7hT2TiENEkac a9PQ== X-Gm-Message-State: ANoB5pmN0lPfU969XSIjm0lv6ERfF4Fem8FLdxYuNJb0107ncBm3pebi 6WyUJyhrcBDpclOJT2dwx9Y= X-Google-Smtp-Source: AA0mqf4oNYSxIG7WYcb8jlGE07AoMFcNYGISOe49YmaAfQVXydsM3m0zzhIN55GdRGCJW001Pyv7Gg== X-Received: by 2002:a17:902:9f98:b0:189:a6be:85db with SMTP id g24-20020a1709029f9800b00189a6be85dbmr29038031plq.39.1671139428704; Thu, 15 Dec 2022 13:23:48 -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 jj11-20020a170903048b00b001783f964fe3sm97314plb.113.2022.12.15.13.23.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2022 13:23:48 -0800 (PST) In-Reply-To: <96DD7ED2-231B-4017-A2E6-D1910DDBF2B6@thornhill.no> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=casouri@gmail.com; helo=mail-pj1-x1035.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:301472 Archived-At: > On Dec 14, 2022, at 9:59 PM, Theodor Thornhill = wrote: >=20 >=20 >=20 > On 15 December 2022 00:31:20 CET, Yuan Fu wrote: >>=20 >>=20 >>> On Dec 14, 2022, at 6:01 AM, Stefan Monnier = wrote: >>>=20 >>>> I would argue that the purpose of forward-sexp is to move over = items in >>>> a list. >>>=20 >>> There are different ways to look at it. In the Lisp context where = it >>> emerged, we only have "identifiers" and "parenthesized thingies", so >>> that doesn't give much guidance about what to do in-between. >>=20 >> I see, so maybe sexp means the general, flexible AST entity. And = thinking of it, my idea is just forward-list :-) And we definitely = should include forward-list into the list of navigation commands we want = to support, among the ones that are already brought up. >>=20 >>>=20 >>> The semantics I chose for SMIE is what I found to be closest to >>> past practice. >>=20 >> That=E2=80=99 great! You=E2=80=99ve done all the experiments and = thinking, and all I need to do is to understand it ;-) >>=20 >=20 > Are you working on this, yuan? If so I'll get out of your hair. No I=E2=80=99m working on something else, please go ahead! Yuan=