From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73404: 30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes Date: Mon, 30 Dec 2024 11:30:52 -0500 Message-ID: References: <87plox4mtp.fsf@masteringemacs.org> <87frpm20t7.fsf@masteringemacs.org> <8634lmbs8t.fsf@gnu.org> <87bk0a1u0o.fsf@masteringemacs.org> <86tte2a5o3.fsf@gnu.org> <877cay1lqt.fsf@masteringemacs.org> <86frpma06f.fsf@gnu.org> <86ikueiekp.fsf@mail.linkov.net> <86ed4zg1cc.fsf@mail.linkov.net> <87zflac68t.fsf@mail.linkov.net> <87jzcdlxdp.fsf@mail.linkov.net> <87o71jocgs.fsf@mail.linkov.net> <87wmfwqg7e.fsf@mail.linkov.net> <8734i5fyv1.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39761"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mickey Petersen , Yuan Fu , Theodor Thornhill , Eli Zaretskii , 73404@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 17:32:38 2024 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 1tSIh2-000ABg-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 17:32:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSIgl-0000Hc-Ug; Mon, 30 Dec 2024 11:32:20 -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 1tSIgW-0000Gf-RI for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 11:32:10 -0500 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 1tSIgU-0008JV-Mt for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 11:32:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=pTEAy0rL53k1sYvk7Xe7e2ICOepmHH2ZoY2LReO3pBY=; b=nihlPWyjNzuu38igFPJKX7Un5dVbiK5G9sPyb96G3X1Xa4CLjq29J0DuoQCDkbX11aotjq51nkY73S+sEvuA0CQxY0eIH7sC7qmH9WrF8wRYgA47g+px63rGRZtK802RlSMHGOhfiFpDMhnsPBG8B+Nmd8lxgtqhFqrLWe6tudDLNVDCCT5UkW2Ed1dL9Ewy3DubMTGdUfQGO1MsL/3f/BGg53p/url7fIuDjwzz4smqweC/JGHPppQmeDchz7lAE9ToR+D5htKuHmlEWkx10b9BeYRVFswA1+JbMSbqRMUUVxkyPvuVwvuZpfwNKzTw4PM1w02HLckcuPU1jyU2oA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSIgT-0002lL-Mo for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73404 X-GNU-PR-Package: emacs Original-Received: via spool by 73404-submit@debbugs.gnu.org id=B73404.173557627310553 (code B ref 73404); Mon, 30 Dec 2024 16:32:01 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 30 Dec 2024 16:31:13 +0000 Original-Received: from localhost ([127.0.0.1]:59622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSIfc-0002k5-Uz for submit@debbugs.gnu.org; Mon, 30 Dec 2024 11:31:12 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSIfW-0002jU-Km for 73404@debbugs.gnu.org; Mon, 30 Dec 2024 11:31:06 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B525010004C; Mon, 30 Dec 2024 11:30:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1735576253; bh=FMUTCq0ViqlC9n0hUL5nRvexo8TQtMXIK4kBEMZXkOc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LgbkfkTNfL5UIKaBmk2uY2ri6ebNP19FYQqoHzT0GfNqIA2F4Qj4e3PzOFdOeuA+v BOd+vqEDyJgt75oSNZFD2AwldNmubPBkgCXk0RIP+b1OZRlyUXz6sXEHuardHpVCBl YsSqFQayewrVd192wbbcLpH9Lf1eUbzNxc2CHk2WcGtfmVxaqYTbfXsKF4qkj1bKhC aU3RwHnhmtVqSXaO7rjmPFGzA0pY4DIO0Zge/Fpi/7kAQBQmzD1bjEkpAj3kXGkwRL YzODW+TA9TlrmnIvM1AGIV57HsjZyuJr+Z7MVzZ4v6tM1xWAz5qcSAITPpoiE8MuFH YBRucRtqZM4Ow== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5E8A3100035; Mon, 30 Dec 2024 11:30:53 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1D45E120484; Mon, 30 Dec 2024 11:30:53 -0500 (EST) In-Reply-To: <8734i5fyv1.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 30 Dec 2024 09:15:42 +0200") 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:298009 Archived-At: > BTW, my initial intention was to add the thing 'list'. > But then I discovered that (treesit-thing-next (point) 'list) > uses the function 'list' instead of the thing 'list'. I don't have a good suggestion for the actual naming. Regarding the fact that this arg can take a either symbol or a function (which suffers from a risk of ambiguity, like you discovered), I think it's very important to try and avoid the intersection of the two, and a "standard" way to do that is to use keywords, like `:list`. Stefan PS: Tho, strictly speaking you can `(defun :list ...)`. I just hope noone ever does that (although I plead guilty to getting dangerously close to it when I suggested this very idea to Philip for `setup.el`).