From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov 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: Fri, 10 Jan 2025 09:34:08 +0200 Organization: LINKOV.NET Message-ID: <87ed1bm8b3.fsf@mail.linkov.net> References: <87plox4mtp.fsf@masteringemacs.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> <875xmumpzv.fsf@mail.linkov.net> <87pll190ui.fsf@mail.linkov.net> <674226FE-597C-44DC-823A-667E5C55397A@gmail.com> <87ldvmik3o.fsf@mail.linkov.net> <87plkwwigx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Theodor Thornhill , Eli Zaretskii , Mickey Petersen , Stefan Monnier , 73404@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 10 08:36:21 2025 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 1tW9Z6-0004ZU-Ex for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jan 2025 08:36:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW9Yq-00008B-Pr; Fri, 10 Jan 2025 02:36:04 -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 1tW9Yo-00007m-Jw for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:36:02 -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 1tW9Yo-00031v-BJ for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:36:02 -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=TDzKMGaI0sgrFGGQh/2wqPkrtQ++GfwVtcMHBMUinBw=; b=lXwrXXx8SY+34aS0tGL2/nQn2IU8pmVCbwRniIr2JylDtZ9pzPMGSzDxWwEn2GXZtx3P5xM8wAWFk0ay0rH7r1iOJ69YOU2KFuRXi+DAabMl/2F8J0N0HwXGwUKXBQfjMC7kjpGbhK2fpJwA6qNs/gJLyJ0Xc81QZ/nqfjBmBi2g20a0K69gMbUUiFhU2HQh4U07rjxMgNAb8SzvY9zazxccLcLsptxT0aA1GvmKqplWSIJPm8zrbnqWQBDxfs/F3MfttBtI0z1J3R9DSTHUzGpknXwuGyw+CLgCeesl9mygmjIDc8d2LyILBn5V9494Fo0YqOgFuSUCO/94XkNhFg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tW9Yn-0001rm-Ng for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jan 2025 07:36: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.17364945157053 (code B ref 73404); Fri, 10 Jan 2025 07:36:01 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 10 Jan 2025 07:35:15 +0000 Original-Received: from localhost ([127.0.0.1]:56251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tW9Y3-0001pf-0e for submit@debbugs.gnu.org; Fri, 10 Jan 2025 02:35:15 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59611) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tW9Y1-0001mg-Rt; Fri, 10 Jan 2025 02:35:14 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id D770060003; Fri, 10 Jan 2025 07:35:04 +0000 (UTC) In-Reply-To: (Yuan Fu's message of "Thu, 9 Jan 2025 19:14:08 -0800") X-GND-Sasl: juri@linkov.net 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:298869 Archived-At: close 73404 31.0.50 thanks >>> Juri, please feel free to apply your symbol property patch. For the symbol >>> property name, I feel that something like >>> treesit-symbol-predicate/treesit-use-as-symbol-predicate would be more >>> descriptive. >> >> If we settle on the variant that keeps the current format with symbols, >> wouldn't it better to keep a symbol property name shorter? >> >> First I proposed 'treesit-predicate', but then realized it's wrong >> since it's opposite to the predicate function. >> 'treesit-thing' was better since it indicates that it's used in >> 'treesit-thing-settings'. >> >>> Since we don’t have docstrings for symbol properties (right?). >> >> There are no docstrings for symbol properties indeed. But I think >> the important property for the name is that it should be unique enough >> to be easily greppable. But I tried to grep, and 'treesit-thing' finds >> too many matches. >> >> So probably the most suitable symbol name would be 'treesit-thing-symbol', >> that currently has no occurrences in source code. > > Sounds good. Let’s go with it then. So now pushed together with updates in the manual.